ln on Solaris expects -f to come before -s.
authorRichard Levitte <levitte@openssl.org>
Sat, 24 Mar 2001 11:45:57 +0000 (11:45 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 24 Mar 2001 11:45:57 +0000 (11:45 +0000)
The linux-shared method is actually gcc-specific, so call it
gnu-shared as well.

Makefile.org

index 09cb7128e1f9da91085c2fc0d0e8d3ec6c1c532f..f1227df32dfd0535fc87c1d5c944d50c558868f1 100644 (file)
@@ -250,7 +250,7 @@ link-shared:
                if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
                        tmp="$(SHARED_LIBS_LINK_EXTS)"; \
                        for j in $${tmp:-x}; do \
-                               ( set -x; ln -s -f $$prev lib$$i$$j ); \
+                               ( set -x; ln -f -s $$prev lib$$i$$j ); \
                                prev=lib$$i$$j; \
                        done; \
                fi; \
@@ -259,7 +259,8 @@ link-shared:
 build-shared: clean-shared do_$(SHLIB_TARGET) link-shared
 
 do_bsd-gcc-shared: linux-shared
-do_linux-shared:
+do_linux-shared: do_gnu-shared
+do_gnu-shared:
        libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
        ( set -x; ${CC}  -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
                -Wl,-S,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \