From: PHO Date: Tue, 19 Jan 2010 08:20:21 +0000 (+0900) Subject: Small fixes for Darwin X-Git-Tag: GHC-6.12.2~11 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=dfc823b34b5e59c29c9bd5777c21a80b976d386d;p=pkgsrc-ghc.git Small fixes for Darwin --- 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