diff options
author | simonpj <unknown> | 2005-02-02 10:50:28 +0000 |
---|---|---|
committer | simonpj <unknown> | 2005-02-02 10:50:28 +0000 |
commit | 141169e59b413ede615139e419aca32565a3fe18 (patch) | |
tree | 556b314393dbd57cc80c7b60db0330844df80c99 /ghc/lib/compat/Makefile | |
parent | 1a252f250cb1e6f4a09568b514c25ca20adc73dc (diff) | |
download | haskell-141169e59b413ede615139e419aca32565a3fe18.tar.gz |
[project @ 2005-02-02 10:50:28 by simonpj]
Futher gruesome makefile hackery to deal with building lib/compat
Diffstat (limited to 'ghc/lib/compat/Makefile')
-rw-r--r-- | ghc/lib/compat/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ghc/lib/compat/Makefile b/ghc/lib/compat/Makefile index 56220e9fd4..fcb274d89b 100644 --- a/ghc/lib/compat/Makefile +++ b/ghc/lib/compat/Makefile @@ -18,8 +18,15 @@ MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) UseGhcForCc = YES # This library is linked to the compiler, at least in stage1, so we -# better make sure it is built the same "way": -SRC_HC_OPTS += $(GhcHcOpts) +# better make sure it is built the same "way". +# +# BUT, if GhcHcOpts includes -DDEBUG we *don't* want to compile +# lib/compat with -DDEBUG, because the preprocessor symbols used +# by the compiler may be understood differently by library code. +# In this particular case, it turned out that -DDEBUG made Cabal +# import HUnit, which might not be installed for the compiler we are +# compiling with (e.g. 6.2.1). Hence the filter-out. +SRC_HC_OPTS += $(filter-out -D%, $(GhcHcOpts)) ifeq "$(ghc_ge_603)" "YES" # These modules are all provided in GHC 6.3+ |