3
@@ -680,6 +680,10 @@ KILL_OPT= -DKILL_IP_OPTIONS
4
## End configuration options
5
############################
7
+include /usr/share/hardening-includes/hardening.make
8
+CFLAGS += $(HARDENING_CFLAGS)
9
+LDFLAGS += $(HARDENING_LDFLAGS)
11
# Protection against weird shells or weird make programs.
14
@@ -715,7 +719,7 @@ KIT = README miscd.c tcpd.c fromhost.c h
18
- $(CC) $(CFLAGS) $(SHCFLAGS) -c $< -o $@
19
+ $(CC) $(filter-out $(HARDENING_DISABLE_PIE_CFLAGS_FILTER),$(CFLAGS)) $(SHCFLAGS) -c $< -o $@
23
@@ -749,7 +753,7 @@ $(LIB): $(LIB_OBJ)
25
$(SHLIB): libwrap.lds $(SHLIB_OBJ)
27
- $(CC) $(CFLAGS) $(LDFLAGS) -o $(SHLIB) $(SHLINKFLAGS) $(SHLIB_OBJ) $(LIBS)
28
+ $(CC) $(filter-out $(HARDENING_DISABLE_PIE_CFLAGS_FILTER),$(CFLAGS)) $(filter-out $(HARDENING_DISABLE_PIE_LDFLAGS_FILTER),$(LDFLAGS)) -o $(SHLIB) $(SHLINKFLAGS) $(SHLIB_OBJ) $(LIBS)
29
ln -sf $(notdir $(SHLIB)) $(SHLIBSOMAJ)
30
ln -sf $(notdir $(SHLIBSOMAJ)) $(SHLIBSO)