Make shared libraries resolve global symbols within themselves first.
authorRichard Levitte <levitte@openssl.org>
Sat, 6 Apr 2002 09:42:25 +0000 (09:42 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 6 Apr 2002 09:42:25 +0000 (09:42 +0000)
Currently only on GNUish linkers...
Submitted by Steven Bade <sbade@austin.ibm.com>

Makefile.org

index 99f7acb0a7b86cf03c4dec324924ebea262a21e6..54e92b1383a388753e959542d01905c08b3b9bd9 100644 (file)
@@ -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; \