File scotty-pie.patch of Package scotty
Index: scotty-2.1.11/unix/Makefile.in
===================================================================
--- scotty-2.1.11.orig/unix/Makefile.in
+++ scotty-2.1.11/unix/Makefile.in
@@ -839,12 +839,12 @@ bintar:
#----------------------------------------------------------------
ntping.o: $(TNM_NTPING_DIR)/ntping.c
- $(CC) -c $(CFLAGS) -I. -DHAVE_CONFIG_H $(TNM_NTPING_DIR)/ntping.c
+ $(CC) -c $(CFLAGS) -fpie -I. -DHAVE_CONFIG_H $(TNM_NTPING_DIR)/ntping.c
ntping: ntping.o
@if [ -f ntping ] ; then mv -f ntping ntpink.bak ; else true ; fi
@rm -f ntping.bak || true
- $(LD) $(LD_FLAGS) -o ntping ntping.o $(LIBS)
+ $(LD) $(LD_FLAGS) -pie -o ntping ntping.o $(LIBS)
straps.o: $(TNM_SNMP_DIR)/straps.c
$(CC) -c $(CFLAGS) -I. $(TNM_SNMP_DIR)/straps.c