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