Patch #596576: Always use cc to link on NetBSD. Will backport to 2.2.
This commit is contained in:
parent
bc01c3248d
commit
d61888b60a
|
@ -1,5 +1,5 @@
|
|||
#! /bin/sh
|
||||
# From configure.in Revision: 1.346 .
|
||||
# From configure.in Revision: 1.347 .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.53.
|
||||
#
|
||||
|
@ -8878,13 +8878,14 @@ then
|
|||
Linux*|GNU*) LDSHARED='$(CC) -shared';;
|
||||
dgux*) LDSHARED="ld -G";;
|
||||
BSD/OS*/4*) LDSHARED="gcc -shared";;
|
||||
OpenBSD*|NetBSD*|FreeBSD*)
|
||||
OpenBSD*|FreeBSD*)
|
||||
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
|
||||
then
|
||||
LDSHARED="cc -shared ${LDFLAGS}"
|
||||
else
|
||||
LDSHARED="ld -Bshareable ${LDFLAGS}"
|
||||
fi;;
|
||||
NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
|
||||
OpenUNIX*|UnixWare*)
|
||||
if test "$GCC" = "yes"
|
||||
then LDSHARED="$(CC) -shared"
|
||||
|
|
|
@ -927,13 +927,14 @@ then
|
|||
Linux*|GNU*) LDSHARED='$(CC) -shared';;
|
||||
dgux*) LDSHARED="ld -G";;
|
||||
BSD/OS*/4*) LDSHARED="gcc -shared";;
|
||||
OpenBSD*|NetBSD*|FreeBSD*)
|
||||
OpenBSD*|FreeBSD*)
|
||||
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
||||
then
|
||||
LDSHARED="cc -shared ${LDFLAGS}"
|
||||
else
|
||||
LDSHARED="ld -Bshareable ${LDFLAGS}"
|
||||
fi;;
|
||||
NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
|
||||
OpenUNIX*|UnixWare*)
|
||||
if test "$GCC" = "yes"
|
||||
then LDSHARED="$(CC) -shared"
|
||||
|
|
Loading…
Reference in New Issue