X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FMakefile;h=09f5766dd49e520658e8fe8c4eb0d0bae9976277;hb=d92b83b91324d24a8caf243a1eedd070cc455b6d;hp=6fe606943ed9f00e7c55dee0358d64503a47a89e;hpb=d16f69bd77467961e80e27caff5c5bd686afa90b;p=ghc-hetmet.git diff --git a/rts/Makefile b/rts/Makefile index 6fe6069..09f5766 100644 --- a/rts/Makefile +++ b/rts/Makefile @@ -161,6 +161,12 @@ ifeq "$(UseLibFFIForAdjustors)" "YES" SRC_CC_OPTS += -DUSE_LIBFFI_FOR_ADJUSTORS endif +ifeq "$(Windows)" "YES" +# SDM: when compiled with -fasm the RTS currently has bogus references to +# __imp_base_ things, so working around for now: +SRC_HC_OPTS = -fvia-C +endif + ifneq "$(DYNAMIC_RTS)" "YES" SRC_HC_OPTS += -static else @@ -462,13 +468,8 @@ endif # # binary-dist -binary-dist: - $(INSTALL_DIR) $(BIN_DIST_DIR)/rts - $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/rts/ - $(INSTALL_DATA) package.conf.in $(BIN_DIST_DIR)/rts/ -ifneq "$(INSTALL_LIBS)" "" - $(INSTALL_DATA) $(INSTALL_LIBS) $(BIN_DIST_DIR)/rts/ -endif -ifneq "$(INSTALL_LIBEXECS)" "" - $(INSTALL_PROGRAM) $(INSTALL_LIBEXECS) $(BIN_DIST_DIR)/rts/ -endif +BINDIST_EXTRAS += package.conf.in +BINDIST_EXTRAS += $(INSTALL_LIBS) +BINDIST_EXTRAS += $(INSTALL_LIBEXECS) +include $(TOP)/mk/bindist.mk +