From: Richard Levitte Date: Sat, 6 Apr 2002 09:42:31 +0000 (+0000) Subject: Make shared libraries resolve global symbols within themselves first. X-Git-Tag: OpenSSL_0_9_6d-beta1~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9bd313b83d1dfd0a1490ab405e92a3d3b6d653de;p=oweals%2Fopenssl.git Make shared libraries resolve global symbols within themselves first. Currently only on GNUish linkers... Submitted by Steven Bade --- diff --git a/Makefile.org b/Makefile.org index 30370c8e73..ec0de4fe12 100644 --- a/Makefile.org +++ b/Makefile.org @@ -262,6 +262,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"; \ @@ -288,6 +289,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; \