From: Ian Jackson Date: Fri, 29 Nov 2013 20:41:17 +0000 (+0000) Subject: Makefile: honour CMDLINE_CFLAGS, CMDLINE_CPPFLAGS, CMDLINE_LDFLAGS. X-Git-Tag: debian/4.3.0~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=5d27d7e18206fb594bed06ac327a7b70a083569e;p=chiark-utils.git Makefile: honour CMDLINE_CFLAGS, CMDLINE_CPPFLAGS, CMDLINE_LDFLAGS. --- diff --git a/debian/changelog b/debian/changelog index 2219cc9..376be02 100644 --- a/debian/changelog +++ b/debian/changelog @@ -22,6 +22,7 @@ chiark-utils (4.3.0) unstable; urgency=medium * watershed; Provide -h and --help options. Closes:#659989. Build and portability fixes: + * Makefile: honour CMDLINE_CFLAGS, CMDLINE_CPPFLAGS, CMDLINE_LDFLAGS. * xbatmon-simple: Saner build rune. * cprogs/Makefile: clean deletes $PROGRAMS * random-word: Some perl-mode emacs formatting glitch workarounds. diff --git a/settings.make b/settings.make index 5471dbd..2a0b183 100644 --- a/settings.make +++ b/settings.make @@ -23,8 +23,9 @@ 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 -Wno-pointer-sign