X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Ftarget.mk;h=b773430366de0213e7a26b21f38b5b73838191df;hb=fc7496ec40bbfa14a3e66454a4b663da6dcb89fe;hp=4fb1ec1057b5542326d0d275421144b3cc2840b9;hpb=6ecddfb5acf40be7468e92db317d0fe95d4bdb1a;p=ghc-hetmet.git diff --git a/mk/target.mk b/mk/target.mk index 4fb1ec1..b773430 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -257,7 +257,13 @@ endif ifneq "$(PACKAGE)" "" # add syslib dependencies and current package name + +# HACK!!! The conditional below is needed because we pass $(HC_OPTS) +# directly to mkdependC and sometimes the C compiler in ghc/rts. Todo. +ifneq "$(PACKAGE)" "rts" SRC_HC_OPTS += -package-name $(PACKAGE) +endif + SRC_HC_OPTS += $(patsubst %, -package %, $(PACKAGE_DEPS)) ifeq "$(IS_CBITS_LIB)" "YES"