[project @ 2005-05-10 10:08:50 by simonmar]
authorsimonmar <unknown>
Tue, 10 May 2005 10:08:50 +0000 (10:08 +0000)
committersimonmar <unknown>
Tue, 10 May 2005 10:08:50 +0000 (10:08 +0000)
-ignore-package lang if GHC >= 6.3, fixes build breakage if wxHaskell
 is installed.

ghc/compiler/Makefile

index 769a673..062791e 100644 (file)
@@ -496,6 +496,13 @@ SRC_HC_OPTS += -package Cabal
 PKG_DEPENDS += Cabal
 endif
 
+ifeq "$(ghc_ge_603)" "YES"
+# Ignore lang, to avoid potential clash with the Generics module if
+# lang happens to be a dependency of some exposed package in the local
+# GHC installation (eg. wxHaskell did this around 6.4).
+SRC_HC_OPTS += -ignore-package lang
+endif
+
 SRC_CC_OPTS += -Iparser -I. -O
 SRC_HC_OPTS += -recomp $(GhcHcOpts) $(GhcStage$(stage)HcOpts)
 SRC_HC_OPTS += -H16M