]> err.no Git - sash/commitdiff
Abuse OPT to set our CFLAGS
authorTollef Fog Heen <tfheen@err.no>
Sun, 20 Apr 2014 06:58:16 +0000 (08:58 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 20 Apr 2014 06:58:16 +0000 (08:58 +0200)
debian/rules

index 7ff39ca7c2a549ba1f3ea45b41d3151b2d214d91..27894d6522e01901bf5dcd67a73710164b595caf 100755 (executable)
@@ -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