2013-09-26 17:14:40 +02:00

22 lines
571 B
Plaintext

$NetBSD: patch-bg,v 1.1 2007/06/11 13:38:44 markd 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"