# 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
# 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