Blame SOURCES/net-snmp-5.9-pie.patch

bc6b3f
diff --git a/agent/Makefile.in b/agent/Makefile.in
bc6b3f
index b5d692d..1a30209 100644
bc6b3f
--- a/agent/Makefile.in
bc6b3f
+++ b/agent/Makefile.in
bc6b3f
@@ -297,7 +297,7 @@ getmibstat.o: mibgroup/kernel_sunos5.c
bc6b3f
 	$(CC) $(CFLAGS) -o $@ -D_GETMIBSTAT_TEST -DDODEBUG -c $? 
bc6b3f
 
bc6b3f
 snmpd$(EXEEXT):	${LAGENTOBJS} $(USELIBS) $(AGENTLIB) $(HELPERLIB) $(MIBLIB) $(LIBTARG) 
bc6b3f
-	$(LINK) $(CFLAGS) -o $@ ${LAGENTOBJS} ${LDFLAGS} ${OUR_AGENT_LIBS}
bc6b3f
+	$(LINK) $(CFLAGS) -o $@ -pie ${LAGENTOBJS} ${LDFLAGS} ${OUR_AGENT_LIBS}
bc6b3f
 
bc6b3f
 libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION):    ${LLIBAGENTOBJS} $(USELIBS)
bc6b3f
 	$(LIB_LD_CMD) $(AGENTLIB) ${LLIBAGENTOBJS} $(USELIBS) ${LAGENTLIBS} @LD_NO_UNDEFINED@ $(LDFLAGS) $(PERLLDOPTS_FOR_LIBS) @AGENTLIBS@
bc6b3f
diff --git a/apps/Makefile.in b/apps/Makefile.in
bc6b3f
index 43f3b9c..d4529d3 100644
bc6b3f
--- a/apps/Makefile.in
bc6b3f
+++ b/apps/Makefile.in
bc6b3f
@@ -190,7 +190,7 @@ snmptest$(EXEEXT):    snmptest.$(OSUFFIX) $(USELIBS)
bc6b3f
 	$(LINK) ${CFLAGS} -o $@ snmptest.$(OSUFFIX) ${LDFLAGS} ${LIBS}
bc6b3f
 
bc6b3f
 snmptrapd$(EXEEXT):    $(TRAPD_OBJECTS) $(USETRAPLIBS) $(INSTALLLIBS)
bc6b3f
-	$(LINK) ${CFLAGS} -o $@ $(TRAPD_OBJECTS) $(INSTALLLIBS) ${LDFLAGS} ${TRAPLIBS}
bc6b3f
+	$(LINK) ${CFLAGS} -o $@ -pie $(TRAPD_OBJECTS) $(INSTALLLIBS) ${LDFLAGS} ${TRAPLIBS}
bc6b3f
 
bc6b3f
 snmptrap$(EXEEXT):    snmptrap.$(OSUFFIX) $(USELIBS)
bc6b3f
 	$(LINK) ${CFLAGS} -o $@ snmptrap.$(OSUFFIX) ${LDFLAGS} ${LIBS}