summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc/lib/std/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/ghc/lib/std/Makefile b/ghc/lib/std/Makefile
index 4284da407e..b0f985bc41 100644
--- a/ghc/lib/std/Makefile
+++ b/ghc/lib/std/Makefile
@@ -134,10 +134,15 @@ override datadir:=$(libdir)/imports/std
# Files to install from here
#
INSTALL_LIBS += $(LIBRARY)
-ifeq "$(EnableWin32DLLs)" "YES"
+ifeq "$(way)" "dll"
INSTALL_PROGS += $(DLL_NAME)
-INSTALL_LIBS += $(patsubst %.a, %_imp.a, $(LIBRARY)) PrelMain.dll_o
+INSTALL_LIBS += $(patsubst %.a, $(LIBRARY)) PrelMain.dll_o
+else
+INSTALL_LIBS += $(patsubst %_imp.a, $(LIBRARY))
endif
INSTALL_DATAS += $(HS_IFACES) PrelGHC.$(way_)hi
+ifeq "$(way)" "dll"
+INSTALL_DATAS := $(filter-out PrelHugs.$(way_)hi,$(INSTALL_DATAS))
+endif
include $(TOP)/mk/target.mk