[Remind-Fans] [PATCH 2/2] Makefile.in: Respect CPPFLAGS.

Simon Ruderich simon at ruderich.org
Thu Oct 18 08:52:57 EDT 2012


---
Hello,

Makefile.in doesn't respect CPPFLAGS (preprocessor flags) which
are for example used for hardening flags like
-D_FORTIFY_SOURCE=2. This patch updates Makefile.in to respect
them.

Regards,
Simon

 src/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile.in b/src/Makefile.in
index 19553e5..7207a4e 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -41,7 +41,7 @@ test: remind
 	@sh ../tests/test-rem
 
 .c.o:
-	@CC@ -c @CFLAGS@ @DEFS@ $(CEXTRA) $(LANGDEF) -I. -I$(srcdir) $<
+	@CC@ -c @CPPFLAGS@ @CFLAGS@ @DEFS@ $(CEXTRA) $(LANGDEF) -I. -I$(srcdir) $<
 
 rem2ps: rem2ps.o dynbuf.o
 	@CC@ @LDFLAGS@ $(LDEXTRA) -o rem2ps rem2ps.o dynbuf.o
-- 
1.7.12.3

-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.roaringpenguin.com/pipermail/remind-fans/attachments/20121018/6bace825/attachment.pgp>


More information about the Remind-fans mailing list