diff options
author | Richard Levitte <levitte@openssl.org> | 2002-12-16 20:33:38 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-12-16 20:33:38 +0000 |
commit | c445142505ff84fb6d13b0ae12e86cff07a1b06e (patch) | |
tree | 2b9d4bd1bda0cfc28fec4a66ed77e63f16ea3521 | |
parent | f70ddce761ea237c27c933303ad7935c102c5eb3 (diff) |
Transfer the Solaris shared library building changes from
0.9.7-stable.
-rw-r--r-- | Makefile.shared | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile.shared b/Makefile.shared index 7e56204552..fad2fd15ef 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -333,11 +333,13 @@ link_o.solaris: $(DO_GNU); \ else \ $(CALC_VERSIONS); \ + MINUSZ='-z '; \ + (${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \ SHLIB=lib$(LIBNAME).so \ SHLIB_SUFFIX= \ LIBDEPS="$(LIBDEPS) -lc" \ - ALLSYMSFLAGS='-z allextract' \ - NOALLSYMSFLAGS='' \ + ALLSYMSFLAGS="$${MINUSZ}allextract" \ + NOALLSYMSFLAGS="$${MINUSZ}defaultextract" \ SHAREDFLAGS='-G -dy -z text -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX' \ SHAREDCMD='$(CC)'; \ fi; \ @@ -347,11 +349,13 @@ link_a.solaris: $(DO_GNU); \ else \ $(CALC_VERSIONS); \ + MINUSZ='-z '; \ + (${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \ SHLIB=lib$(LIBNAME).so \ SHLIB_SUFFIX= \ LIBDEPS="$(LIBDEPS) -lc" \ - ALLSYMSFLAGS='-z allextract' \ - NOALLSYMSFLAGS='' \ + ALLSYMSFLAGS="$${MINUSZ}allextract" \ + NOALLSYMSFLAGS="$${MINUSZ}defaultextract" \ SHAREDFLAGS='-G -dy -z text -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX' \ SHAREDCMD='$(CC)'; \ fi; \ |