--- client/Makefile.dist +++ client/Makefile.dist @@ -128,6 +128,6 @@ dhclient: $(OBJS) $(DHCPLIB) - $(CC) $(LFLAGS) -o $(PROG) $(OBJS) $(DHCPLIB) $(LIBS) + $(CC) $(LFLAGS) -pie -o $(PROG) $(OBJS) $(DHCPLIB) $(LIBS) # Dependencies (semi-automatically-generated) --- dhcpctl/Makefile.dist +++ dhcpctl/Makefile.dist @@ -37,10 +37,10 @@ all: libdhcpctl.a omshell cltest $(CATMANPAGES) omshell: omshell.o $(DHCPCTLLIBS) - $(CC) $(DEBUG) $(LFLAGS) -o omshell omshell.o $(DHCPCTLLIBS) $(LIBS) + $(CC) $(DEBUG) $(LFLAGS) -pie -o omshell omshell.o $(DHCPCTLLIBS) $(LIBS) cltest: cltest.o $(DHCPCTLLIBS) - $(CC) $(DEBUG) $(LFLAGS) -o cltest cltest.o $(DHCPCTLLIBS) $(LIBS) + $(CC) $(DEBUG) $(LFLAGS) -pie -o cltest cltest.o $(DHCPCTLLIBS) $(LIBS) libdhcpctl.a: $(OBJ) rm -f libdhcpctl.a --- relay/Makefile.dist +++ relay/Makefile.dist @@ -83,6 +83,6 @@ -e "s#RUNDIR#$(VARRUN)#" < dhcrelay.8 >dhcrelay.man8 dhcrelay: dhcrelay.o $(DHCPLIB) - $(CC) $(LFLAGS) -o $(PROG) dhcrelay.o $(DHCPLIB) $(LIBS) + $(CC) $(LFLAGS) -pie -o $(PROG) dhcrelay.o $(DHCPLIB) $(LIBS) # Dependencies (semi-automatically-generated) --- server/Makefile.dist +++ server/Makefile.dist @@ -103,6 +103,6 @@ -e "s#RUNDIR#$(VARRUN)#g" < dhcpd.leases.5 >dhcpd.leases.man5 dhcpd: $(OBJS) $(COBJ) $(DHCPLIB) - $(CC) $(LFLAGS) -o dhcpd $(OBJS) $(DHCPLIB) $(LIBS) + $(CC) $(LFLAGS) -pie -o dhcpd $(OBJS) $(DHCPLIB) $(LIBS) # Dependencies (semi-automatically-generated)