summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2013-06-25 15:14:36 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-06-27 18:51:48 (GMT)
commit6e8efc0ed409d7211a81d5370e088aa438990607 (patch)
tree6fe51ea450fd2578bb529318b97bcb0be104fed1
parent79c55aadd54d098696644d77f9e60cd200e08753 (diff)
downloadbuildroot-6e8efc0ed409d7211a81d5370e088aa438990607.tar.gz
buildroot-6e8efc0ed409d7211a81d5370e088aa438990607.tar.bz2
openswan: Restore -fPIE to USERCOMPILE flags
The default USERCOMPILE variable uses -fPIE so we bring this back. This also fixes linking problems for MIPS when non-PIC objects are used to form a PIC one. Fixes the following linking problem on MIPS: connections.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/openswan/openswan.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/openswan/openswan.mk b/package/openswan/openswan.mk
index 8a857d4..0b8e7d3 100644
--- a/package/openswan/openswan.mk
+++ b/package/openswan/openswan.mk
@@ -11,7 +11,7 @@ OPENSWAN_LICENSE_FILES = COPYING LICENSE
OPENSWAN_DEPENDENCIES = host-bison gmp iproute2
OPENSWAN_MAKE_OPT = ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" \
- USERCOMPILE="$(TARGET_CFLAGS)" INC_USRLOCAL=/usr \
+ USERCOMPILE="$(TARGET_CFLAGS) -fPIE" INC_USRLOCAL=/usr \
USE_KLIPS=false USE_MAST=false USE_NM=false
ifeq ($(BR2_PACKAGE_LIBCURL),y)