From: Tollef Fog Heen Date: Sun, 20 Apr 2014 06:58:16 +0000 (+0200) Subject: Abuse OPT to set our CFLAGS X-Git-Tag: debian/3.8-1~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c921c3a4ec53f4d1c0311f99a0daf7e56f82386;p=sash Abuse OPT to set our CFLAGS --- diff --git a/debian/rules b/debian/rules index 7ff39ca..27894d6 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,7 @@ BUILT_USING := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), dh $@ override_dh_auto_build: - $(MAKE) CFLAGS="`dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS`" LDFLAGS="-static `dpkg-buildflags --get LDFLAGS`" + $(MAKE) OPT="`dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS`" LDFLAGS="-static `dpkg-buildflags --get LDFLAGS`" override_dh_auto_install: make install BINDIR=$(pkgdir)/bin MANDIR=$(pkgdir)/usr/share/man/man1