$NetBSD: patch-ab,v 1.16 2003/07/06 16:10:18 uebayasi Exp $ --- configure.orig Sat Jun 14 12:55:08 2003 +++ configure @@ -9124,6 +9124,22 @@ fi +# NETBSD: NetBSD's newer run-time linker fix. +if test $opsys = netbsd; then + if test -f /usr/lib/crti.o; then + cat >> confdefs.h <<\EOF +#define HAVE_NETBSD_CRTI 1 +EOF + + fi + if test -f /usr/lib/crtn.o; then + cat >> confdefs.h <<\EOF +#define HAVE_NETBSD_CRTN 1 +EOF + + fi +fi + # Set up the CFLAGS for real compilation, so we can substitute it. CFLAGS="$REAL_CFLAGS" CPPFLAGS="$REAL_CPPFLAGS"