summaryrefslogtreecommitdiff
path: root/openssl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-09-12 10:17:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-09-12 10:17:24 +0200
commit96e1446f3235cb06c8b9e0ac5bce09b37fbe36bd (patch)
tree2ed21df94d434e2359a0f81f3b48fd16cc96b10f /openssl
parent18251a64d58e0a925c66c67ce9d0b1b83a442a19 (diff)
Unfortunately, openssl's "no-shared" apparently also implies no -fPIC
...so building dynamic libraries down the road that link in the openssl archives fails. Band-aid fix that by always passing in -fPIC (alternatives would be to patch the openssl Makefiles to only build archives and no dynamic libraries even under "shared" or to find another fix for the original Mac OS X hiden visibility program that triggered 9f8736411d454bfd711ef964288c50aae9f9e375 "Only build in ExternalProject_openssl what's needed in ExternalPackage_openssl"). Change-Id: I6b92ab55b0bbd340aacf325823b1f297e95f9197
Diffstat (limited to 'openssl')
-rw-r--r--openssl/ExternalProject_openssl.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/ExternalProject_openssl.mk b/openssl/ExternalProject_openssl.mk
index b825622a2d51..e41adb868e5a 100644
--- a/openssl/ExternalProject_openssl.mk
+++ b/openssl/ExternalProject_openssl.mk
@@ -85,7 +85,7 @@ $(call gb_ExternalProject_get_state_target,openssl,build):
$(if $(SYSBASE),-I$(SYSBASE)/usr/include -L$(SYSBASE)/usr/lib)) \
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
&& $(MAKE) build_libs \
- CC="$(CC) $(if $(filter-out WNT,$(OS)),\
+ CC="$(CC) -fPIC $(if $(filter-out WNT,$(OS)),\
$(if $(filter TRUE,$(HAVE_GCC_VISIBILITY_FEATURE)),\
-fvisibility=hidden))" \
)