forked from jengelh/openldap2
212340f559
update to 2.4.26 OBS-URL: https://build.opensuse.org/request/show/77338 OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=69
119 lines
3.7 KiB
Plaintext
119 lines
3.7 KiB
Plaintext
From 34e2af586533bf43e2fec55e707fa4d51ca6634c Mon Sep 17 00:00:00 2001
|
|
From: Ralf Haferkamp <rhafer@suse.de>
|
|
Date: Fri, 12 Nov 2010 09:39:11 +0100
|
|
Subject: pie compile
|
|
|
|
|
|
diff --git a/build/top.mk b/build/top.mk
|
|
index f09e0c3..3cb54c7 100644
|
|
--- a/build/top.mk
|
|
+++ b/build/top.mk
|
|
@@ -107,7 +107,7 @@ LINK_LIBS = $(MOD_LIBS) $(@PLAT@_LINK_LIBS)
|
|
LTSTATIC = @LTSTATIC@
|
|
|
|
LTLINK = $(LIBTOOL) --mode=link \
|
|
- $(CC) $(LTSTATIC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS)
|
|
+ $(CC) -pie $(LTSTATIC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS)
|
|
|
|
LTCOMPILE_LIB = $(LIBTOOL) $(LTONLY_LIB) --mode=compile \
|
|
$(CC) $(LT_CFLAGS) $(LT_CPPFLAGS) $(LIB_DEFS) -c
|
|
@@ -116,7 +116,7 @@ LTLINK_LIB = $(LIBTOOL) $(LTONLY_LIB) --mode=link \
|
|
$(CC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS_LIB)
|
|
|
|
LTCOMPILE_MOD = $(LIBTOOL) $(LTONLY_MOD) --mode=compile \
|
|
- $(CC) $(LT_CFLAGS) $(LT_CPPFLAGS) $(MOD_DEFS) -c
|
|
+ $(CC) $(LT_CFLAGS) $(PIE_CFLAGS) $(LT_CPPFLAGS) $(MOD_DEFS) -c
|
|
|
|
LTLINK_MOD = $(LIBTOOL) $(LTONLY_MOD) --mode=link \
|
|
$(CC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS_MOD)
|
|
@@ -206,7 +206,7 @@ SLAPD_LIBS = @SLAPD_LIBS@ @SLAPD_PERL_LDFLAGS@ @SLAPD_SQL_LDFLAGS@ @SLAPD_SQL_LI
|
|
# Our Defaults
|
|
CC = $(AC_CC)
|
|
DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES)
|
|
-CFLAGS = $(AC_CFLAGS) $(DEFS)
|
|
+CFLAGS = -fPIE $(AC_CFLAGS) $(DEFS)
|
|
LDFLAGS = $(LDAP_LIBPATH) $(AC_LDFLAGS) $(XLDFLAGS)
|
|
LIBS = $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS)
|
|
|
|
diff --git a/servers/slapd/back-bdb/Makefile.in b/servers/slapd/back-bdb/Makefile.in
|
|
index 93dc9a6..7172e70 100644
|
|
--- a/servers/slapd/back-bdb/Makefile.in
|
|
+++ b/servers/slapd/back-bdb/Makefile.in
|
|
@@ -33,6 +33,8 @@ LDAP_LIBDIR= ../../../libraries
|
|
BUILD_OPT = "--enable-bdb"
|
|
BUILD_MOD = @BUILD_BDB@
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
+
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
MOD_DEFS = $(@BUILD_BDB@_DEFS)
|
|
MOD_LIBS = $(BDB_LIBS)
|
|
diff --git a/servers/slapd/back-hdb/Makefile.in b/servers/slapd/back-hdb/Makefile.in
|
|
index 8f6236b..1d5ba5f 100644
|
|
--- a/servers/slapd/back-hdb/Makefile.in
|
|
+++ b/servers/slapd/back-hdb/Makefile.in
|
|
@@ -37,6 +37,8 @@ LDAP_LIBDIR= ../../../libraries
|
|
BUILD_OPT = "--enable-hdb"
|
|
BUILD_MOD = @BUILD_HDB@
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
+
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
MOD_DEFS = $(@BUILD_HDB@_DEFS)
|
|
MOD_LIBS = $(BDB_LIBS)
|
|
diff --git a/servers/slapd/back-ldap/Makefile.in b/servers/slapd/back-ldap/Makefile.in
|
|
index 418447f..8d42e72 100644
|
|
--- a/servers/slapd/back-ldap/Makefile.in
|
|
+++ b/servers/slapd/back-ldap/Makefile.in
|
|
@@ -26,6 +26,8 @@ LDAP_LIBDIR= ../../../libraries
|
|
BUILD_OPT = "--enable-ldap"
|
|
BUILD_MOD = @BUILD_LDAP@
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
+
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
MOD_DEFS = $(@BUILD_LDAP@_DEFS)
|
|
|
|
diff --git a/servers/slapd/back-ldif/Makefile.in b/servers/slapd/back-ldif/Makefile.in
|
|
index a8b5a96..12fbaab 100644
|
|
--- a/servers/slapd/back-ldif/Makefile.in
|
|
+++ b/servers/slapd/back-ldif/Makefile.in
|
|
@@ -22,6 +22,8 @@ LDAP_LIBDIR= ../../../libraries
|
|
BUILD_OPT = "--enable-ldif"
|
|
BUILD_MOD = yes
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
+
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
MOD_DEFS = $(yes_DEFS)
|
|
|
|
diff --git a/servers/slapd/back-monitor/Makefile.in b/servers/slapd/back-monitor/Makefile.in
|
|
index ddb474a..61e51b8 100644
|
|
--- a/servers/slapd/back-monitor/Makefile.in
|
|
+++ b/servers/slapd/back-monitor/Makefile.in
|
|
@@ -30,6 +30,8 @@ LDAP_LIBDIR= ../../../libraries
|
|
BUILD_OPT = "--enable-monitor"
|
|
BUILD_MOD = @BUILD_MONITOR@
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
+
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
MOD_DEFS = $(@BUILD_MONITOR@_DEFS)
|
|
|
|
diff --git a/servers/slapd/back-relay/Makefile.in b/servers/slapd/back-relay/Makefile.in
|
|
index f93a84c..a35dd83 100644
|
|
--- a/servers/slapd/back-relay/Makefile.in
|
|
+++ b/servers/slapd/back-relay/Makefile.in
|
|
@@ -22,6 +22,8 @@ LDAP_LIBDIR= ../../../libraries
|
|
BUILD_OPT = "--enable-relay"
|
|
BUILD_MOD = @BUILD_RELAY@
|
|
|
|
+PIE_CFLAGS="-fPIE"
|
|
+
|
|
mod_DEFS = -DSLAPD_IMPORT
|
|
MOD_DEFS = $(@BUILD_RELAY@_DEFS)
|
|
|
|
--
|
|
1.7.3.4
|
|
|