Navigation Menu

Skip to content

Commit

Permalink
Use CPPFLAGS and LDFLAGS from the environment
Browse files Browse the repository at this point in the history
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
rudis authored and rfrancoise committed Apr 1, 2012
1 parent 7be3608 commit 1c8e4cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -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
Expand All @@ -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) $<
Expand Down

0 comments on commit 1c8e4cd

Please sign in to comment.