summaryrefslogtreecommitdiff
path: root/Makefile.org
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-04-06 09:42:19 +0000
committerRichard Levitte <levitte@openssl.org>2002-04-06 09:42:19 +0000
commit83d092f7853e8abcc824bb68269235640a06a1d6 (patch)
treea90bab1fef55934dd419ec5f670ea87cfcb2f793 /Makefile.org
parent4825092bbe7e23e26769f0cadba70fe508b8a047 (diff)
downloadopenssl-new-83d092f7853e8abcc824bb68269235640a06a1d6.tar.gz
Make shared libraries resolve global symbols within themselves first.
Currently only on GNUish linkers... Submitted by Steven Bade <sbade@austin.ibm.com>
Diffstat (limited to 'Makefile.org')
-rw-r--r--Makefile.org2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.org b/Makefile.org
index 81d2a5eb9c..736a178772 100644
--- a/Makefile.org
+++ b/Makefile.org
@@ -266,6 +266,7 @@ do_gnu-shared:
( set -x; ${CC} ${SHARED_LDFLAGS} \
-shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
-Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+ -Wl,-Bsymbolic \
-Wl,--whole-archive lib$$i.a \
-Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \
libs="$$libs -l$$i"; \
@@ -292,6 +293,7 @@ do_darwin-shared:
do_cygwin-shared:
libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
( set -x; ${CC} -shared -o cyg$$i.dll \
+ -Wl,-Bsymbolic \
-Wl,--whole-archive lib$$i.a \
-Wl,--out-implib,lib$$i.dll.a \
-Wl,--no-whole-archive $$libs ) || exit 1; \