Another Solaris shared build clean-up. This is not actually needed if one
authorAndy Polyakov <appro@openssl.org>
Sun, 15 Dec 2002 15:27:53 +0000 (15:27 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 15 Dec 2002 15:27:53 +0000 (15:27 +0000)
uses WorkShop C. It's gcc driver that brings copy of libgcc.a into .so
otherwise. In case you wonder what it's -Wl,-z... and not just -z. Problem
is that gcc driver apparently omits all -z options but -z text. Don't ask
me why. I'm not committing corresponding workaround into the HEAD as
Makefile.shared reportedly needs even more work...

Makefile.org

index e6daf017d32fc2f43bf6cc10c2d6ae0cb2063d1b..d110cc8297a46e4c61cb0f112a450ca5c575fdfb 100644 (file)
@@ -360,7 +360,8 @@ do_solaris-shared:
                  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} \
-                       -z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
+                       -Wl,-z,allextract lib$$i.a -Wl,-z,defaultextract \
+                       $$libs ${EX_LIBS} -lc ) || exit 1; \
                libs="$$libs -l$$i"; \
                done; \
        fi