From dfc823b34b5e59c29c9bd5777c21a80b976d386d Mon Sep 17 00:00:00 2001 From: PHO Date: Tue, 19 Jan 2010 17:20:21 +0900 Subject: [PATCH] Small fixes for Darwin --- Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3bc2358..399d09d 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,8 @@ ONLY_FOR_PLATFORM= NetBSD-*-i386 FreeBSD-*-i386 Darwin-*-powerpc # way than this? .include "../../mk/compiler.mk" .if empty(CCPATH) -WARNINGS+= "This package depends on pkgsrc's undocumented variable CCPATH but it disappeared somehow." +WARNINGS+= "This package depends on pkgsrc's undocumented variable\ +CCPATH but it disappeared somehow." WARNINGS+= "Using hard-coded /usr/bin/gcc as the C compiler..." CONFIGURE_ARGS+= --with-gcc=/usr/bin/gcc .else @@ -141,13 +142,21 @@ do-configure: # Disable file splitting until pkgsrc gets improved. pre-build: ${RUN} ${ECHO} "SplitObjs = NO" >> ${WRKSRC}/mk/build.mk -# We need a work around for powerpc ld bug. -# See http://hackage.haskell.org/trac/ghc/ticket/3260 +# We have to sacrifice the GHCi library for GHC itself to work around +# for powerpc ld bug. See +# http://hackage.haskell.org/trac/ghc/ticket/3260 .if ${MACHINE_ARCH} == "powerpc" + ${RUN} ${MKDIR} ${WRKSRC}/compiler/stage1/build ${RUN} ${TOUCH} ${WRKSRC}/compiler/stage1/build/HS${DISTNAME}.o + ${RUN} ${MKDIR} ${WRKSRC}/compiler/stage2/build ${RUN} ${TOUCH} ${WRKSRC}/compiler/stage2/build/HS${DISTNAME}.o .endif +.if ${MACHINE_ARCH} == "powerpc" +WARNINGS+= "You won't be able to use GHCi library for GHC itself\ +because of powerpc ld bug." +.endif + # Some unused scripts don't pass the portability test. CHECK_PORTABILITY_SKIP+= distrib/prep-bin-dist-mingw -- 2.40.0