d5ef856
Build both slapd as position-independent executables.  This really
d5ef856
should be threaded into the various autotools, but I guess this is what we have
d5ef856
until that happens, if it happens.
d5ef856
d5ef856
--- openldap-2.2.13/servers/slapd/Makefile.in	2004-04-12 14:07:40.000000000 -0400
d5ef856
+++ openldap-2.2.13/servers/slapd/Makefile.in	2004-06-15 13:45:45.000000000 -0400
d5ef856
@@ -255,7 +255,7 @@
d5ef856
 	cp slapi/.libs/libslapi.a .
d5ef856
 
d5ef856
 slapd: $(SLAPD_DEPENDS) @LIBSLAPI@
d5ef856
-	$(LTLINK) -o $@ $(SLAPD_OBJECTS) $(LIBS) \
d5ef856
+	$(LTLINK) -pie -Wl,-z,defs -o $@ $(SLAPD_OBJECTS) $(LIBS) \
d5ef856
 		$(WRAP_LIBS)
d5ef856
 	rm -f $(SLAPTOOLS)
d5ef856
 	for i in $(SLAPTOOLS); do \