summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
authorgrant <grant>2004-01-13 09:53:35 +0000
committergrant <grant>2004-01-13 09:53:35 +0000
commit4fad81517c8fcf3c7acf19a11fd0e17258adb535 (patch)
tree3b499ca27812813e040863cf0d182dd22b464e3b /lang/gcc3
parentf612a89a1a6bf4f70055ae7eaf000ec2608a7615 (diff)
downloadpkgsrc-4fad81517c8fcf3c7acf19a11fd0e17258adb535.tar.gz
add a workaround for Solaris finding libintl.h in ${LOCALBASE}/include.
if configure finds this file, it expects to be able to use it, and linking fails because /usr/lib/libintl.so isn't GNU libintl. allows this to be built on Solaris while gettext-lib is installed.
Diffstat (limited to 'lang/gcc3')
-rw-r--r--lang/gcc3/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/gcc3/Makefile b/lang/gcc3/Makefile
index d7d4b5c4e41..482d44159e4 100644
--- a/lang/gcc3/Makefile
+++ b/lang/gcc3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2003/10/11 06:24:52 wiz Exp $
+# $NetBSD: Makefile,v 1.46 2004/01/13 09:53:35 grant Exp $
#
DISTNAME= gcc-3.3
@@ -113,6 +113,11 @@ post-install:
.include "../../mk/bsd.pkg.mk"
+# do not allow gcc to find libintl.h (or anything else) in ${LOCALBASE}.
+# if it can, it expects it can have libintl, and linking fails miserably.
+CFLAGS:= ${CFLAGS:S|-I${LOCALBASE}/include||}
+CPPFLAGS:= ${CPPFLAGS:S|-I${LOCALBASE}/include||}
+
# Make bootstrap with compiler != gcc possible.
CONFIGURE_ENV+= LDFLAGS="${_STRIPFLAG_CC}"
MAKE_ENV+= GCC_PREFIX="${GCC_PREFIX}"