X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FMakefile;h=1cf49d91a9c0dae772064891c4fb3aa070246069;hb=980f56ed05fe6665e73d130cc99de6390095c2d7;hp=61690911a2679a9a539b3fe3023ea18ba0b25231;hpb=3fc8c5b200dc411c9b4d3aa1c2b5706de653c5f7;p=ghc-hetmet.git diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 6169091..1cf49d9 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -235,7 +235,7 @@ CLEAN_FILES += $(CONFIG_HS) ALL_DIRS = \ utils basicTypes types hsSyn prelude rename typecheck deSugar coreSyn \ specialise simplCore stranal stgSyn simplStg codeGen main \ - profiling parser cprAnalysis compMan ndpFlatten cbits iface cmm + profiling parser cprAnalysis compMan ndpFlatten iface cmm # Make sure we include Config.hs even if it doesn't exist yet... ALL_SRCS += $(CONFIG_HS) @@ -507,6 +507,14 @@ primop-usage.hs-incl: prelude/primops.txt #----------------------------------------------------------------------------- # Linking +# Include libghccompat in stage1. In stage2 onwards, all these libraries +# will be available from the main libraries. +ifeq "$(stage)" "1" +SRC_HC_OPTS += -i$(GHC_LIB_COMPAT_DIR) +SRC_LD_OPTS += -L$(GHC_LIB_COMPAT_DIR) -lghccompat +SRC_MKDEPENDHS_OPTS += -optdep--exclude-module=Compat.RawSystem +endif + SRC_LD_OPTS += -no-link-chk # -----------------------------------------------------------------------------