2009-12-10 16:36:32 +01:00
|
|
|
Index: build/top.mk
|
|
|
|
===================================================================
|
|
|
|
--- build/top.mk.orig
|
|
|
|
+++ build/top.mk
|
|
|
|
@@ -178,9 +178,9 @@ SLAPD_L = $(LDAP_LIBLUNICODE_A) $(LDAP_L
|
2006-12-19 00:17:14 +01:00
|
|
|
WRAP_LIBS = @WRAP_LIBS@
|
|
|
|
# AutoConfig generated
|
|
|
|
AC_CC = @CC@
|
|
|
|
-AC_CFLAGS = @CFLAGS@
|
|
|
|
+AC_CFLAGS = @CFLAGS@ $(PIE_CFLAGS)
|
|
|
|
AC_DEFS = @CPPFLAGS@ # @DEFS@
|
|
|
|
-AC_LDFLAGS = @LDFLAGS@
|
|
|
|
+AC_LDFLAGS = @LDFLAGS@ $(PIE_LDFLAGS)
|
|
|
|
AC_LIBS = @LIBS@
|
|
|
|
|
|
|
|
KRB4_LIBS = @KRB4_LIBS@
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: libraries/liblunicode/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- libraries/liblunicode/Makefile.in.orig
|
|
|
|
+++ libraries/liblunicode/Makefile.in
|
|
|
|
@@ -35,6 +35,9 @@ $(XXDIR)/uctable.h: $(XXDIR)/ucgendat.c
|
|
|
|
$(MAKE) ucgendat
|
|
|
|
./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt
|
2006-12-19 00:17:14 +01:00
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
ucgendat: $(XLIBS) ucgendat.o
|
|
|
|
$(LTLINK) -o $@ ucgendat.o $(LIBS)
|
2009-12-10 16:36:32 +01:00
|
|
|
|
|
|
|
Index: libraries/liblutil/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- libraries/liblutil/Makefile.in.orig
|
|
|
|
+++ libraries/liblutil/Makefile.in
|
|
|
|
@@ -19,6 +19,9 @@ PROGRAM = testavl
|
2006-12-19 00:17:14 +01:00
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
NT_SRCS = ntservice.c
|
|
|
|
NT_OBJS = ntservice.o slapdmsg.res
|
|
|
|
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: servers/slapd/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- servers/slapd/Makefile.in.orig
|
|
|
|
+++ servers/slapd/Makefile.in
|
|
|
|
@@ -69,6 +69,9 @@ SLAPD_DYNAMIC_BACKENDS=@SLAPD_DYNAMIC_BA
|
2006-12-19 00:17:14 +01:00
|
|
|
|
|
|
|
SLAPI_LIBS=@LIBSLAPI@ @SLAPI_LIBS@
|
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
XDEFS = $(MODULES_CPPFLAGS)
|
|
|
|
XLDFLAGS = $(MODULES_LDFLAGS)
|
|
|
|
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: servers/slapd/back-bdb/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- servers/slapd/back-bdb/Makefile.in.orig
|
|
|
|
+++ servers/slapd/back-bdb/Makefile.in
|
|
|
|
@@ -37,6 +37,9 @@ mod_DEFS = -DSLAPD_IMPORT
|
2006-12-19 00:17:14 +01:00
|
|
|
MOD_DEFS = $(@BUILD_BDB@_DEFS)
|
2009-12-10 16:36:32 +01:00
|
|
|
MOD_LIBS = $(BDB_LIBS)
|
2006-12-19 00:17:14 +01:00
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
|
|
|
|
NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
|
|
|
UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: servers/slapd/back-hdb/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- servers/slapd/back-hdb/Makefile.in.orig
|
|
|
|
+++ servers/slapd/back-hdb/Makefile.in
|
|
|
|
@@ -41,6 +41,9 @@ mod_DEFS = -DSLAPD_IMPORT
|
2006-12-19 00:17:14 +01:00
|
|
|
MOD_DEFS = $(@BUILD_HDB@_DEFS)
|
2009-12-10 16:36:32 +01:00
|
|
|
MOD_LIBS = $(BDB_LIBS)
|
2006-12-19 00:17:14 +01:00
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
|
|
|
|
NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
|
|
|
UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: servers/slapd/overlays/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- servers/slapd/overlays/Makefile.in.orig
|
|
|
|
+++ servers/slapd/overlays/Makefile.in
|
|
|
|
@@ -45,6 +45,9 @@ LTONLY_MOD = $(LTONLY_mod)
|
2006-12-19 00:17:14 +01:00
|
|
|
LDAP_INCDIR= ../../../include
|
|
|
|
LDAP_LIBDIR= ../../../libraries
|
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
MOD_DEFS = -DSLAPD_IMPORT
|
|
|
|
|
|
|
|
shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: servers/slapd/back-relay/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- servers/slapd/back-relay/Makefile.in.orig
|
|
|
|
+++ servers/slapd/back-relay/Makefile.in
|
|
|
|
@@ -25,6 +25,9 @@ BUILD_MOD = @BUILD_RELAY@
|
2006-12-19 00:17:14 +01:00
|
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
|
|
MOD_DEFS = $(@BUILD_RELAY@_DEFS)
|
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
|
|
|
|
NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) $(REWRITE)
|
|
|
|
UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) $(REWRITE)
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: servers/slapd/back-ldif/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- servers/slapd/back-ldif/Makefile.in.orig
|
|
|
|
+++ servers/slapd/back-ldif/Makefile.in
|
|
|
|
@@ -25,6 +25,9 @@ BUILD_MOD = yes
|
2006-12-19 00:17:14 +01:00
|
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
|
|
MOD_DEFS = $(yes_DEFS)
|
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
|
|
|
|
NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
|
|
|
UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: libraries/librewrite/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- libraries/librewrite/Makefile.in.orig
|
|
|
|
+++ libraries/librewrite/Makefile.in
|
|
|
|
@@ -26,6 +26,9 @@ OBJS = config.o context.o info.o ldapmap
|
2006-12-19 00:17:14 +01:00
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
LIBRARY = librewrite.a
|
|
|
|
PROGRAMS = rewrite
|
|
|
|
XLIBS = $(LIBRARY) $(LDAP_LIBLUTIL_A) \
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: servers/slapd/back-ldap/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- servers/slapd/back-ldap/Makefile.in.orig
|
|
|
|
+++ servers/slapd/back-ldap/Makefile.in
|
|
|
|
@@ -29,6 +29,9 @@ BUILD_MOD = @BUILD_LDAP@
|
2006-12-19 00:17:14 +01:00
|
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
|
|
MOD_DEFS = $(@BUILD_LDAP@_DEFS)
|
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
|
|
|
|
NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
|
|
|
UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
2009-12-10 16:36:32 +01:00
|
|
|
Index: servers/slapd/back-monitor/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- servers/slapd/back-monitor/Makefile.in.orig
|
|
|
|
+++ servers/slapd/back-monitor/Makefile.in
|
|
|
|
@@ -33,6 +33,9 @@ BUILD_MOD = @BUILD_MONITOR@
|
2006-12-19 00:17:14 +01:00
|
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
|
|
MOD_DEFS = $(@BUILD_MONITOR@_DEFS)
|
|
|
|
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
|
|
+PIE_LDFLAGS="-pie"
|
|
|
|
+
|
|
|
|
shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
|
|
|
|
NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
|
|
|
UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|