summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-01-13 09:53:35 +0000
committergrant <grant@pkgsrc.org>2004-01-13 09:53:35 +0000
commit49262175f6a8c014bb180a15f79a7eaafbe7ae8b (patch)
tree3b499ca27812813e040863cf0d182dd22b464e3b /lang/gcc3
parent9bf440e87457e8fe544484afb1415cd3121b82cd (diff)
downloadpkgsrc-49262175f6a8c014bb180a15f79a7eaafbe7ae8b.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}"