summaryrefslogtreecommitdiff
path: root/lang/gcc45
diff options
context:
space:
mode:
authorpho <pho>2014-09-02 09:41:56 +0000
committerpho <pho>2014-09-02 09:41:56 +0000
commit2c4e80dd7b8de0984976eb5b2209179d1559aeba (patch)
treed90d204f9000d2c114d7d07851e949653307a556 /lang/gcc45
parentbc491813258622d4043ce276b725999fc8f98a26 (diff)
downloadpkgsrc-2c4e80dd7b8de0984976eb5b2209179d1559aeba.tar.gz
PR pkg/48740 - Fix build issues on Darwin
Apply a patch by Sevan: 1. gcc needs to be built with dwarf2 if Darwin < 9 2. if you're building on a 32bit PowerPC Darwin < 9, disable multilib
Diffstat (limited to 'lang/gcc45')
-rw-r--r--lang/gcc45/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/gcc45/Makefile b/lang/gcc45/Makefile
index a0498c7e21e..6ec79b3c3fb 100644
--- a/lang/gcc45/Makefile
+++ b/lang/gcc45/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2014/05/29 23:36:42 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2014/09/02 09:41:56 pho Exp $
DISTNAME= gcc-${GCC_VERSION}
PKGNAME= gcc45-${GCC_VERSION}
@@ -89,6 +89,14 @@ CONFIGURE_ARGS+= --disable-libquadmath --disable-libquadmath-support
CONFIGURE_ARGS+= STRIP_FOR_TARGET=${TOOLS_PLATFORM.strip}
.endif
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+CONFIGURE_ARGS+= --with-dwarf2
+.endif
+
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc)
+CONFIGURE_ARGS+= --disable-multilib
+.endif
+
CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL}
MAKE_ENV+= SHELL=${CONFIG_SHELL}