Patch #596576: Always use cc to link on NetBSD. Will backport to 2.2.
diff --git a/configure.in b/configure.in
index e97e32e..5e68e75 100644
--- a/configure.in
+++ b/configure.in
@@ -927,13 +927,14 @@
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"