Patch #596576: Always use cc to link on NetBSD. Will backport to 2.2.

This commit is contained in:
Martin v. Löwis 2002-09-30 11:17:27 +00:00
parent bc01c3248d
commit d61888b60a
2 changed files with 5 additions and 3 deletions

5
configure vendored
View file

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.in Revision: 1.346 . # From configure.in Revision: 1.347 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53. # Generated by GNU Autoconf 2.53.
# #
@ -8878,13 +8878,14 @@ then
Linux*|GNU*) LDSHARED='$(CC) -shared';; Linux*|GNU*) LDSHARED='$(CC) -shared';;
dgux*) LDSHARED="ld -G";; dgux*) LDSHARED="ld -G";;
BSD/OS*/4*) LDSHARED="gcc -shared";; BSD/OS*/4*) LDSHARED="gcc -shared";;
OpenBSD*|NetBSD*|FreeBSD*) OpenBSD*|FreeBSD*)
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
then then
LDSHARED="cc -shared ${LDFLAGS}" LDSHARED="cc -shared ${LDFLAGS}"
else else
LDSHARED="ld -Bshareable ${LDFLAGS}" LDSHARED="ld -Bshareable ${LDFLAGS}"
fi;; fi;;
NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
OpenUNIX*|UnixWare*) OpenUNIX*|UnixWare*)
if test "$GCC" = "yes" if test "$GCC" = "yes"
then LDSHARED="$(CC) -shared" then LDSHARED="$(CC) -shared"

View file

@ -927,13 +927,14 @@ then
Linux*|GNU*) LDSHARED='$(CC) -shared';; Linux*|GNU*) LDSHARED='$(CC) -shared';;
dgux*) LDSHARED="ld -G";; dgux*) LDSHARED="ld -G";;
BSD/OS*/4*) LDSHARED="gcc -shared";; BSD/OS*/4*) LDSHARED="gcc -shared";;
OpenBSD*|NetBSD*|FreeBSD*) OpenBSD*|FreeBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]] if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then then
LDSHARED="cc -shared ${LDFLAGS}" LDSHARED="cc -shared ${LDFLAGS}"
else else
LDSHARED="ld -Bshareable ${LDFLAGS}" LDSHARED="ld -Bshareable ${LDFLAGS}"
fi;; fi;;
NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
OpenUNIX*|UnixWare*) OpenUNIX*|UnixWare*)
if test "$GCC" = "yes" if test "$GCC" = "yes"
then LDSHARED="$(CC) -shared" then LDSHARED="$(CC) -shared"