2017-06-04 02:46:26 +02:00
|
|
|
Index: Makefile
|
|
|
|
===================================================================
|
2012-04-22 04:21:26 +02:00
|
|
|
--- Makefile.orig
|
2006-12-19 00:17:59 +01:00
|
|
|
+++ Makefile
|
2012-04-22 04:21:26 +02:00
|
|
|
@@ -673,7 +673,7 @@ SHLIBFLAGS = -Lshared -lwrap
|
2006-12-19 00:17:59 +01:00
|
|
|
shared/%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) $(SHCFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
-CFLAGS = -O2 -pipe -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
|
2012-04-22 04:21:26 +02:00
|
|
|
+CFLAGS = $(RPM_OPT_FLAGS) $(shell getconf LFS_CFLAGS) -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
|
2006-12-19 00:17:59 +01:00
|
|
|
$(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
|
|
|
|
-DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \
|
|
|
|
-DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
|
2017-06-04 02:46:26 +02:00
|
|
|
@@ -730,26 +730,26 @@ $(SHLIB): $(SHLIB_OBJ)
|
2006-12-19 00:17:59 +01:00
|
|
|
ln -s $(notdir $(SHLIBSOMAJ)) $(SHLIBSO)
|
|
|
|
|
|
|
|
tcpd: tcpd.o $(SHLIB)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ tcpd.o $(SHLIBFLAGS)
|
2017-06-04 02:46:26 +02:00
|
|
|
+ $(CC) -pie -o $@ tcpd.o $(SHLIBFLAGS)
|
2006-12-19 00:17:59 +01:00
|
|
|
|
|
|
|
miscd: miscd.o $(SHLIB)
|
2017-06-04 02:46:26 +02:00
|
|
|
- $(CC) $(CFLAGS) -o $@ miscd.o $(SHLIBFLAGS)
|
|
|
|
+ $(CC) -pie -o $@ miscd.o $(SHLIBFLAGS)
|
2006-12-19 00:17:59 +01:00
|
|
|
|
|
|
|
safe_finger: safe_finger.o $(SHLIB)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ safe_finger.o $(SHLIBFLAGS)
|
2017-06-04 02:46:26 +02:00
|
|
|
+ $(CC) -pie -o $@ safe_finger.o $(SHLIBFLAGS)
|
2006-12-19 00:17:59 +01:00
|
|
|
|
|
|
|
TCPDMATCH_OBJ = tcpdmatch.o fakelog.o inetcf.o scaffold.o
|
|
|
|
|
2017-06-04 02:46:26 +02:00
|
|
|
tcpdmatch: $(TCPDMATCH_OBJ) $(SHLIB)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(TCPDMATCH_OBJ) $(SHLIBFLAGS)
|
|
|
|
+ $(CC) -pie -o $@ $(TCPDMATCH_OBJ) $(SHLIBFLAGS)
|
2006-12-19 00:17:59 +01:00
|
|
|
|
|
|
|
try-from: try-from.o fakelog.o $(SHLIB)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ try-from.o fakelog.o $(SHLIBFLAGS)
|
2017-06-04 02:46:26 +02:00
|
|
|
+ $(CC) -pie -o $@ try-from.o fakelog.o $(SHLIBFLAGS)
|
2006-12-19 00:17:59 +01:00
|
|
|
|
|
|
|
TCPDCHK_OBJ = tcpdchk.o fakelog.o inetcf.o scaffold.o
|
|
|
|
|
2017-06-04 02:46:26 +02:00
|
|
|
tcpdchk: $(TCPDCHK_OBJ) $(SHLIB)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(TCPDCHK_OBJ) $(SHLIBFLAGS)
|
|
|
|
+ $(CC) -pie -o $@ $(TCPDCHK_OBJ) $(SHLIBFLAGS)
|
|
|
|
|
|
|
|
shar: $(KIT)
|
|
|
|
@shar $(KIT)
|