summaryrefslogtreecommitdiff
path: root/openssl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-27 09:16:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-27 09:21:57 +0100
commitaf4e2d9965ea65cc67463ca05ff34f48cc1260b3 (patch)
tree8dfe84f1c8433a567662ac6553a91847779d23b4 /openssl
parent198ed2899fdfcee19b16a6f5b8ddcde70c50ec31 (diff)
Related: fdo#35404 force .a files to hidden visibility
Diffstat (limited to 'openssl')
-rw-r--r--openssl/makefile.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/openssl/makefile.mk b/openssl/makefile.mk
index 1b789b3db6d1..b8f0ec518f53 100644
--- a/openssl/makefile.mk
+++ b/openssl/makefile.mk
@@ -56,7 +56,15 @@ CONFIGURE_ACTION=config
CONFIGURE_FLAGS=-I$(SYSBASE)$/usr$/include -L$(SYSBASE)$/usr$/lib shared no-idea
BUILD_DIR=.
-BUILD_ACTION=make CC='$(CC)'
+
+COMPILER_AND_FLAGS=$(CC)
+#See fdo#35404 If we're only interested in getting a .a (i.e. not windows) then
+#force everything, when possible, as hidden symbols
+.IF "$(OS)" != "WNT" && "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
+COMPILER_AND_FLAGS+=-fvisibility=hidden
+.ENDIF
+
+BUILD_ACTION=make build_libs CC='$(COMPILER_AND_FLAGS)'
OUT2LIB = libssl.*
OUT2LIB += libcrypto.*