From 7ead990335b4bb8c6317c98290447a4c38ea2043 Mon Sep 17 00:00:00 2001 From: pho Date: Thu, 8 May 2014 02:05:29 +0000 Subject: 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. --- lang/gcc45/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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} -- cgit v1.2.3