Transfer the Solaris shared library building changes from
authorRichard Levitte <levitte@openssl.org>
Mon, 16 Dec 2002 20:33:38 +0000 (20:33 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 16 Dec 2002 20:33:38 +0000 (20:33 +0000)
0.9.7-stable.

Makefile.shared

index 7e5620455208015bc89f4fb9afe4a9887b7e619d..fad2fd15efca8a0609330d5767fcf9f1220dd3b8 100644 (file)
@@ -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; \