chiark / gitweb /
debian/rules: use dpkg-buildflags and pass to Makefile.
[chiark-utils.git] / settings.make
index d008a354adf29fdd1404c3b18a6f7e57038541da..2a0b183d4a7a032a28c2c20de85b999ece31ef2e 100644 (file)
@@ -23,11 +23,12 @@ CONFIG_CPPFLAGS=    -DRWBUFFER_SIZE_MB=$(RWBUFFER_SIZE_MB) \
                        -DREALLY_CHECK_FILE='"/etc/inittab"'
 
 CC=            gcc
-CFLAGS=                $(WARNINGS) $(OPTIMISE) $(DEBUG)
-CPPFLAGS=      $(CONFIG_CPPFLAGS)
+CFLAGS=                $(WARNINGS) $(OPTIMISE) $(DEBUG) $(CMDLINE_CFLAGS)
+CPPFLAGS=      $(CONFIG_CPPFLAGS) $(CMDLINE_CPPFLAGS)
+LDFLAGS=       $(CMDLINE_LDFLAGS)
 
 WARNINGS=      -Wall -Wwrite-strings -Wmissing-prototypes \
-               -Wstrict-prototypes -Wpointer-arith
+               -Wstrict-prototypes -Wpointer-arith -Wno-pointer-sign
 OPTIMISE=      -O2
 DEBUG=         -g