Skip to contentSkip to conversation

batmand: Don't override CPPFLAGS set by user

PATCH Applied Sven Eckelmann 2 participants 4 messages Dec 6, 2011 – Dec 7, 2011 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batmand: Don't override CPPFLAGS set by user

Users or build servers may want to enable preprocessor specific options like -D_FORTIFY_SOURCE=2 that are usually placed in CPPFLAGS. The batmand makefile should not override these options to add own preprocessor variables.

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index 346b14a..65e0cf2 100755
@@ -55,7 +55,7 @@ MANPAGE = man/batmand.8
 
 # batmand flags and options
 CFLAGS +=	-pedantic -Wall -W -std=gnu99 -MD
-CPPFLAGS =	-DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA $(NO_POLICY_ROUTING)
+CPPFLAGS +=	-DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA $(NO_POLICY_ROUTING)
 LDLIBS +=	-lpthread
 
 # disable verbose output
Signature · 1 line
1.7.7.3
Applied
#1 lore raw
Quoted 7 lines

Users or build servers may want to enable preprocessor specific options
like -D_FORTIFY_SOURCE=2 that are usually placed in CPPFLAGS. The batmand makefile should not override these options to add own preprocessor variables.

Applied in 9cd7382.

Thanks!

Cheers,
Elektra

#2 lore raw
Quoted 9 lines · On Tuesday 06 December 2011 20:53:53 elektra wrote:
Quoted 7 lines

Users or build servers may want to enable preprocessor specific options

like -D_FORTIFY_SOURCE=2 that are usually placed in CPPFLAGS. The batmand makefile should not override these options to add own preprocessor variables.

Applied in 9cd7382.

It would be nice not to remove my authorship in git. It is enough to just save the mail in a textfile (mbox) and run git am patch123.mbox or git am -s patch123.mbox (this adds your Signed-off-by after my Signed-of-by). Now it looks [1] like you are the author and committer of the patch.... but you should only be the committer.

Kind regards,
Sven

[1] http://git.open-mesh.org/?p=batmand.git;a=commitdiff;h=9cd7382f815fbebe25381d5ad5da4cd5074f20cc

#3 lore raw

Hi -

thanks for the tip!

Cheers,
Elektra