summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorshannonjr <shannonjr>2004-08-06 20:56:15 +0000
committershannonjr <shannonjr>2004-08-06 20:56:15 +0000
commit71afaf9d13f2175486d5d6a2b2e8ef8d13e04a50 (patch)
tree2bda7efa5a84b0a254aa40c1f80cf3b07babe0d2 /lang
parent8fd2db8cebd4a32b7d996663ce1a4fd2194ece49 (diff)
downloadpkgsrc-71afaf9d13f2175486d5d6a2b2e8ef8d13e04a50.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')
-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")