-# 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} -t `expr \`date '+%Y'\` + 1`12310000 \
- ${WRKSRC}/compiler/stage1/build/HS${DISTNAME}.o
- ${RUN} ${MKDIR} ${WRKSRC}/compiler/stage2/build
- ${RUN} ${TOUCH} -t `expr \`date '+%Y'\` + 1`12310000 \
- ${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
+# If we don't explicitly disable HsColour, PLIST gets changed
+# depending on whether we have installed it or not.
+ ${RUN} ${ECHO} "HSCOLOUR_SRCS = NO" >> ${WRKSRC}/mk/build.mk
+# To avoid powerpc crash...
+# See http://hackage.haskell.org/trac/ghc/ticket/4034
+#.if ${MACHINE_ARCH} == "powerpc" && ${OPSYS} == "Darwin"
+# ${RUN} ${ECHO} "GhcRtsHcOpts = -optc-O0 -optc-g" >> ${WRKSRC}/mk/build.mk
+# ${RUN} ${ECHO} "GhcRtsCcOpts = -O0 -g" >> ${WRKSRC}/mk/build.mk
+#.endif