pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc45 Fix build failure on Darwin



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7793fde2e082
branches:  trunk
changeset: 634059:7793fde2e082
user:      pho <pho%pkgsrc.org@localhost>
date:      Thu May 08 02:05:29 2014 +0000

description:
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.

diffstat:

 lang/gcc45/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r b18278d1e31b -r 7793fde2e082 lang/gcc45/Makefile
--- a/lang/gcc45/Makefile       Thu May 08 02:03:58 2014 +0000
+++ b/lang/gcc45/Makefile       Thu May 08 02:05:29 2014 +0000
@@ -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 @@
 .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}
 



Home | Main Index | Thread Index | Old Index