Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 1c8e4cde79b3fc1b4eae4b946cab7679662d60e7 1 parent 7be3608
rudis rudis authored orebokech committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
4 Makefile
View
@@ -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) $<
Please sign in to comment.
Something went wrong with that request. Please try again.