2e7f59d477
- tcp_wrappers_7.6-optflags.diff: enable PIE for all binaries directly. OBS-URL: https://build.opensuse.org/request/show/500818 OBS-URL: https://build.opensuse.org/package/show/network:utilities/tcpd?expand=0&rev=27
47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
Index: Makefile
|
|
===================================================================
|
|
--- Makefile.orig
|
|
+++ Makefile
|
|
@@ -673,7 +673,7 @@ SHLIBFLAGS = -Lshared -lwrap
|
|
shared/%.o: %.c
|
|
$(CC) $(CFLAGS) $(SHCFLAGS) -c $< -o $@
|
|
|
|
-CFLAGS = -O2 -pipe -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
|
|
+CFLAGS = $(RPM_OPT_FLAGS) $(shell getconf LFS_CFLAGS) -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
|
|
$(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
|
|
-DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \
|
|
-DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
|
|
@@ -730,26 +730,26 @@ $(SHLIB): $(SHLIB_OBJ)
|
|
ln -s $(notdir $(SHLIBSOMAJ)) $(SHLIBSO)
|
|
|
|
tcpd: tcpd.o $(SHLIB)
|
|
- $(CC) $(CFLAGS) -o $@ tcpd.o $(SHLIBFLAGS)
|
|
+ $(CC) -pie -o $@ tcpd.o $(SHLIBFLAGS)
|
|
|
|
miscd: miscd.o $(SHLIB)
|
|
- $(CC) $(CFLAGS) -o $@ miscd.o $(SHLIBFLAGS)
|
|
+ $(CC) -pie -o $@ miscd.o $(SHLIBFLAGS)
|
|
|
|
safe_finger: safe_finger.o $(SHLIB)
|
|
- $(CC) $(CFLAGS) -o $@ safe_finger.o $(SHLIBFLAGS)
|
|
+ $(CC) -pie -o $@ safe_finger.o $(SHLIBFLAGS)
|
|
|
|
TCPDMATCH_OBJ = tcpdmatch.o fakelog.o inetcf.o scaffold.o
|
|
|
|
tcpdmatch: $(TCPDMATCH_OBJ) $(SHLIB)
|
|
- $(CC) $(CFLAGS) -o $@ $(TCPDMATCH_OBJ) $(SHLIBFLAGS)
|
|
+ $(CC) -pie -o $@ $(TCPDMATCH_OBJ) $(SHLIBFLAGS)
|
|
|
|
try-from: try-from.o fakelog.o $(SHLIB)
|
|
- $(CC) $(CFLAGS) -o $@ try-from.o fakelog.o $(SHLIBFLAGS)
|
|
+ $(CC) -pie -o $@ try-from.o fakelog.o $(SHLIBFLAGS)
|
|
|
|
TCPDCHK_OBJ = tcpdchk.o fakelog.o inetcf.o scaffold.o
|
|
|
|
tcpdchk: $(TCPDCHK_OBJ) $(SHLIB)
|
|
- $(CC) $(CFLAGS) -o $@ $(TCPDCHK_OBJ) $(SHLIBFLAGS)
|
|
+ $(CC) -pie -o $@ $(TCPDCHK_OBJ) $(SHLIBFLAGS)
|
|
|
|
shar: $(KIT)
|
|
@shar $(KIT)
|