summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-05-06 19:39:41 +0100
committerIan Lynagh <igloo@earth.li>2012-05-06 19:39:41 +0100
commit9949db0a135da28d3d5497b0d31a6a50dad4a8c6 (patch)
tree7b5cf9d40548a3c9de9be2e5fcb61898313d280e /ghc.mk
parentf09812ded085223d3f9dcb50c2c9cdc912984844 (diff)
downloadhaskell-9949db0a135da28d3d5497b0d31a6a50dad4a8c6.tar.gz
Fix the way we call strip on DLLs
On Win64, "install -s" calls a strip that doesn't understand 64bit binaries. For some reason, this means the DLLs end up non-executable, which means executables that use them just segfault.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index cbe3473db3..a8c8cee638 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -799,7 +799,8 @@ install_libs: $(INSTALL_LIBS)
$(call INSTALL_DATA,$(INSTALL_OPTS),$$i,"$(DESTDIR)$(ghclibdir)"); \
$(RANLIB) $(DESTDIR)$(ghclibdir)/`basename $$i` ;; \
*.dll) \
- $(call INSTALL_PROGRAM,-s $(INSTALL_OPTS),$$i,"$(DESTDIR)$(ghclibdir)") ;; \
+ $(call INSTALL_PROGRAM,$(INSTALL_OPTS),$$i,"$(DESTDIR)$(ghclibdir)") ; \
+ $(STRIP_CMD) "$(DESTDIR)$(ghclibdir)"/$$i ;; \
*.so) \
$(call INSTALL_SHLIB,$(INSTALL_OPTS),$$i,"$(DESTDIR)$(ghclibdir)") ;; \
*.dylib) \