Correct C shared library creation when specifing CC to configure
This commit is contained in:
parent
8b4d0d7921
commit
7774cdf71f
1 changed files with 5 additions and 5 deletions
10
configure.ac
10
configure.ac
|
|
@ -186,19 +186,19 @@ then
|
||||||
if test "$with_next_framework" ; then
|
if test "$with_next_framework" ; then
|
||||||
LDSHARED="$LDSHARED \$(LDLIBRARY)"
|
LDSHARED="$LDSHARED \$(LDLIBRARY)"
|
||||||
fi ;;
|
fi ;;
|
||||||
*-*-linux*) LDSHARED="gcc -shared";;
|
*-*-linux*) LDSHARED="$CC -shared";;
|
||||||
*-*-dgux*) LDSHARED="ld -G";;
|
*-*-dgux*) LDSHARED="ld -G";;
|
||||||
*-*-freebsd3*) LDSHARED="gcc -shared";;
|
*-*-freebsd3*) LDSHARED="$CC -shared";;
|
||||||
*-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";;
|
*-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";;
|
||||||
*-*-netbsd*)
|
*-*-netbsd*)
|
||||||
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
||||||
then
|
then
|
||||||
LDSHARED="cc -shared"
|
LDSHARED="$CC -shared"
|
||||||
else
|
else
|
||||||
LDSHARED="ld -Bshareable"
|
LDSHARED="ld -Bshareable"
|
||||||
fi;;
|
fi;;
|
||||||
*-sco-sysv*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
|
*-sco-sysv*) LDSHARED="$CC -G -KPIC -Ki486 -belf -Wl,-Bexport";;
|
||||||
*-*-darwin*) LDSHARED="cc -bundle -undefined suppress -flat_namespace";;
|
*-*-darwin*) LDSHARED="$CC -bundle -undefined suppress -flat_namespace";;
|
||||||
*) LDSHARED="ld";;
|
*) LDSHARED="ld";;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue