Skip to content

Commit

Permalink
ln on Solaris expects -f to come before -s.
Browse files Browse the repository at this point in the history
The linux-shared method is actually gcc-specific, so call it
gnu-shared as well.
  • Loading branch information
levitte committed Mar 24, 2001
1 parent 3041903 commit 73aeb61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile.org
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand All @@ -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} \
Expand Down

0 comments on commit 73aeb61

Please sign in to comment.