pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gcc3 add a workaround for Solaris finding libintl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/546e8b14642f
branches:  trunk
changeset: 466215:546e8b14642f
user:      grant <grant%pkgsrc.org@localhost>
date:      Tue Jan 13 09:53:35 2004 +0000

description:
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:

 lang/gcc3/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r efacd1f96d1d -r 546e8b14642f lang/gcc3/Makefile
--- a/lang/gcc3/Makefile        Tue Jan 13 09:49:26 2004 +0000
+++ b/lang/gcc3/Makefile        Tue Jan 13 09:53:35 2004 +0000
@@ -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 @@
 
 .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}"



Home | Main Index | Thread Index | Old Index