summaryrefslogtreecommitdiff
path: root/lang/gcc34
diff options
context:
space:
mode:
authorshannonjr <shannonjr@pkgsrc.org>2004-08-06 20:56:15 +0000
committershannonjr <shannonjr@pkgsrc.org>2004-08-06 20:56:15 +0000
commite3c6f26ab9206b726c2aa52a3bf8d7a8b7772ad6 (patch)
tree2bda7efa5a84b0a254aa40c1f80cf3b07babe0d2 /lang/gcc34
parent47ef97da2924530661710dc147d81ff42960298e (diff)
downloadpkgsrc-e3c6f26ab9206b726c2aa52a3bf8d7a8b7772ad6.tar.gz
Override "host" in configure only for NetBSD. This was requested because
the operating system for irix was not as expected. The choice for NetBSD is maintained for backward compatibility.
Diffstat (limited to 'lang/gcc34')
-rw-r--r--lang/gcc34/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/gcc34/Makefile b/lang/gcc34/Makefile
index 4f6accdbd18..977f33d596d 100644
--- a/lang/gcc34/Makefile
+++ b/lang/gcc34/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2004/08/01 10:14:16 shannonjr Exp $
+# $NetBSD: Makefile,v 1.11 2004/08/06 20:56:15 shannonjr Exp $
#
DISTNAME= gcc-${GCC_VERSION}
@@ -131,10 +131,12 @@ MESSAGE_SUBST+= GCC_PREFIX=${GCC_PREFIX}
CONFIGURE_ARGS+= --prefix=${GCC_PREFIX}
CPPFLAGS+= -I${BUILDLINK_DIR}/include
CFLAGS+= -I${BUILDLINK_DIR}/include
+.if ${OPSYS} == "NetBSD"
GCC_PLATFORM= ${LOWER_ARCH}--${LOWER_OPSYS}${APPEND_ELF}${LOWER_OS_VERSION:C/_.*//}
CONFIGURE_ARGS+= --host=${GCC_PLATFORM}
GCC_ARCHSUBDIR= ${GCC_SUBPREFIX}/lib/gcc/${GCC_PLATFORM}/${GCC_VERSION}
GCC_ARCHDIR= ${PREFIX}/${GCC_ARCHSUBDIR}
+.endif
post-patch:
.if (${MACHINE_GNU_ARCH} == "x86_64")