summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpho <pho>2014-05-08 02:05:29 +0000
committerpho <pho>2014-05-08 02:05:29 +0000
commit26b1a134dae468754374ed9e6f31a17d5b23ed5d (patch)
treee5a1d5a82d2bf05cecc47ee7ec74f8382076fe92
parent0b083548e3db257e011a582790eee4d05ae54a52 (diff)
downloadpkgsrc-26b1a134dae468754374ed9e6f31a17d5b23ed5d.tar.gz
Fix build failure on Darwin
See ${WRKSRC}/libgcc/config/t-slibgcc-darwin: It uses strip(1) to create a stub library, not just to remove symbols, so we must not let strip(1) be a no-op regardless of ${INSTALL_UNSTRIPPED} or the build fails for missing files.
-rw-r--r--lang/gcc45/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/gcc45/Makefile b/lang/gcc45/Makefile
index 65dbe0cdded..5f8c311c187 100644
--- a/lang/gcc45/Makefile
+++ b/lang/gcc45/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2013/05/31 12:41:11 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2014/05/08 02:05:29 pho Exp $
DISTNAME= gcc-${GCC_VERSION}
PKGNAME= gcc45-${GCC_VERSION}
@@ -81,6 +81,13 @@ MAKE_ENV+= ac_cv_func_clock_gettime=yes
.if ${OPSYS} == "Linux"
CONFIGURE_ARGS+= --disable-libquadmath --disable-libquadmath-support
.endif
+.if ${OPSYS} == "Darwin"
+# See ${WRKSRC}/libgcc/config/t-slibgcc-darwin: It uses strip(1) to
+# create a stub library, not just to remove symbols, so we must not
+# let strip(1) be a no-op regardless of ${INSTALL_UNSTRIPPED} or the
+# build fails for missing files.
+CONFIGURE_ARGS+= STRIP_FOR_TARGET=${TOOLS_PLATFORM.strip}
+.endif
CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL}