From: rrt Date: Mon, 16 Jul 2001 09:13:39 +0000 (+0000) Subject: [project @ 2001-07-16 09:13:39 by rrt] X-Git-Tag: Approximately_9120_patches~1548 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=aa6ee0a8e05fa52c45160ee3292de8f9f4fca70c [project @ 2001-07-16 09:13:39 by rrt] Fix DLL building, and add support for linking .hsc.o files into cbits libraries --- diff --git a/mk/target.mk b/mk/target.mk index 5e8d60f..51fdbe5 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -352,6 +352,8 @@ _cbits := _cbits STUBOBJS += $(HSC_C_OBJS) # Add _hsc.c files to the cbits library SRCS += $(wildcard ../*_hsc.c) +# Make .hsc.h include files from the directory above visible +SRC_CC_OPTS += -I.. endif LIBRARY = libHS$(PACKAGE)$(_cbits)$(_way).a @@ -525,6 +527,8 @@ ifeq "$(DLLized)" "YES" ifneq "$(PACKAGE)" "" SRC_BLD_DLL_OPTS += --export-all --output-def=HS$(PACKAGE)$(_cbits)$(_way).def DllVersionInfo.$(way_)o + +ifneq "$(PACKAGE) $(IS_CBITS_LIB)" "std YES" ifneq "$(PACKAGE)" "rts" SRC_BLD_DLL_OPTS += -lHSstd_cbits_imp -L$(GHC_LIB_DIR)/std/cbits SRC_BLD_DLL_OPTS += -lHSrts_$(way_)imp -L$(GHC_RUNTIME_DIR) @@ -534,6 +538,8 @@ ifneq "$(PACKAGE)" "std" endif endif endif +endif + SRC_BLD_DLL_OPTS += -lgmp -L. -L$(GHC_RUNTIME_DIR)/gmp ifeq "$(IS_CBITS_LIB)" "" SRC_BLD_DLL_OPTS += $(patsubst %,-lHS%_$(way_)imp, $(PACKAGE_DEPS))