1 Respect user environment variables.
3 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
5 diff --git a/Makefile b/Makefile
6 index 54c1de5..7a7b045 100644
10 # Path to parent kernel include files directory
11 LIBC_INCLUDE=/usr/include
15 #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
19 #options if you compile with libc5, and without a bind>=4.9.4 libresolv
20 # NOT AVAILABLE. Please, use libresolv.
24 # What a pity, all new gccs are buggy and -Werror does not work. Sigh.
25 #CCOPT=-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -Werror
26 -CCOPT=-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g
27 -CFLAGS=$(CCOPT) $(GLIBCFIX) $(DEFINES)
29 +CFLAGS += -Wstrict-prototypes -Wall
30 +CPPFLAGS += -D_GNU_SOURCE
32 IPV4_TARGETS=tracepath ping clockdiff rdisc arping tftpd rarpd
33 IPV6_TARGETS=tracepath6 traceroute6 ping6
34 @@ -33,9 +31,8 @@ ping.o ping6.o ping_common.o: ping_common.h
35 tftpd.o tftpsubs.o: tftp.h
37 rdisc_srv: rdisc_srv.o
40 - $(CC) $(CFLAGS) -DRDISC_SERVER -o rdisc_srv.o rdisc.c
41 + $(CC) $(CFLAGS) $(CPPFLAGS) -DRDISC_SERVER -o rdisc_srv.o rdisc.c