diff options
author | Andy Polyakov <appro@openssl.org> | 2002-12-16 18:59:05 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2002-12-16 18:59:05 +0000 |
commit | 9f3864fde3c9d5631e7cd31c5427779c962c0b23 (patch) | |
tree | 2a8d3bd923d7df237d5be0971ca2cdc75847f601 /Makefile.org | |
parent | db186beee4ae2af2ea87f75781d62ea34846e440 (diff) |
Some of Sun compiler drivers (well, one of those I have) collect all
options specified with -Wl in the beginnig of the ld command line which
kind of obsoletes the idea as it's -z defaultextract that will be
closest to lib*.a and not -z allextract:-(
Diffstat (limited to 'Makefile.org')
-rw-r--r-- | Makefile.org | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.org b/Makefile.org index d110cc8297..cd66a01249 100644 --- a/Makefile.org +++ b/Makefile.org @@ -357,10 +357,12 @@ do_solaris-shared: else \ libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ + MINUSZ='-z '; \ + (${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \ set -x; ${CC} ${SHARED_LDFLAGS} -G -dy -z text \ -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ - -Wl,-z,allextract lib$$i.a -Wl,-z,defaultextract \ + $${MINUSZ}allextract lib$$i.a $${MINUSZ}defaultextract \ $$libs ${EX_LIBS} -lc ) || exit 1; \ libs="$$libs -l$$i"; \ done; \ |