Permalink
Browse files

Use CPPFLAGS and LDFLAGS from the environment

Some tools like Debian's dpkg-buildflags use these variables to pass
hardening options so we need to pay attention to them.
  • Loading branch information...
1 parent 7be3608 commit 1c8e4cde79b3fc1b4eae4b946cab7679662d60e7 @rudis rudis committed with orebokech Apr 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
4 Makefile
@@ -5,7 +5,7 @@
DEBUG?= -g
CFLAGS?= -O2 -Wall -W
-CCOPT= $(CFLAGS)
+CCOPT= $(CFLAGS) $(CPPFLAGS)
OBJ = visitors.o aht.o antigetopt.o tail.o
PRGNAME = visitors
@@ -14,7 +14,7 @@ all: visitors
visitors.o: visitors.c blacklist.h
visitors: $(OBJ)
- $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ)
+ $(CC) -o $(PRGNAME) $(LDFLAGS) $(CCOPT) $(DEBUG) $(OBJ)
.c.o:
$(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<

0 comments on commit 1c8e4cd

Please sign in to comment.