$NetBSD: patch-bg,v 1.7 2003/07/06 16:10:19 uebayasi Exp $ --- configure.in.orig Fri Apr 18 19:04:25 2003 +++ configure.in @@ -2177,6 +2177,16 @@ # Fixme: This should be replaced when we have autoconf 2.14. AC_SIZE_T +# NETBSD: NetBSD's newer run-time linker fix. +if test $opsys = netbsd; then + if test -f /usr/lib/crti.o; then + AC_DEFINE(HAVE_NETBSD_CRTI) + fi + if test -f /usr/lib/crtn.o; then + AC_DEFINE(HAVE_NETBSD_CRTN) + fi +fi + # Set up the CFLAGS for real compilation, so we can substitute it. CFLAGS="$REAL_CFLAGS" CPPFLAGS="$REAL_CPPFLAGS"