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