mhonek / rpms / openldap

Forked from rpms/openldap 3 years ago
Clone
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
2ba8459
diff -up openldap-2.4.11/servers/slapd/Makefile.in.patch4 openldap-2.4.11/servers/slapd/Makefile.in
2ba8459
--- openldap-2.4.11/servers/slapd/Makefile.in.patch4	2008-02-12 00:26:43.000000000 +0100
2ba8459
+++ openldap-2.4.11/servers/slapd/Makefile.in	2008-09-01 09:57:09.000000000 +0200
c283082
@@ -266,7 +266,7 @@ libslapi.a: slapi/.libs/libslapi.a
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)
c283082
 	$(RM) $(SLAPTOOLS)
d5ef856
 	for i in $(SLAPTOOLS); do \