pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc46 Unbreak on Tiger by disabling multilib supp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/35d3b6d6da2f
branches:  trunk
changeset: 354113:35d3b6d6da2f
user:      sevan <sevan%pkgsrc.org@localhost>
date:      Wed Oct 19 21:09:40 2016 +0000

description:
Unbreak on Tiger by disabling multilib support which causes build to hang on
32-bit PowerPC Macs and explicitly use DWARF2 to work around toolchain
limitations which cause the comparison test to fail otherwise.

diffstat:

 lang/gcc46/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r a907fe3105cf -r 35d3b6d6da2f lang/gcc46/Makefile
--- a/lang/gcc46/Makefile       Wed Oct 19 20:22:31 2016 +0000
+++ b/lang/gcc46/Makefile       Wed Oct 19 21:09:40 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2016/09/06 13:57:02 maya Exp $
+# $NetBSD: Makefile,v 1.33 2016/10/19 21:09:40 sevan Exp $
 
 DISTNAME=              gcc-${GCC_VERSION}
 PKGNAME=               gcc46-${GCC_VERSION}
@@ -96,6 +96,14 @@
 # build fails for missing files.
 CONFIGURE_ARGS.Darwin+=        STRIP_FOR_TARGET=${TOOLS_PLATFORM.strip}
 
+.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}



Home | Main Index | Thread Index | Old Index