diff options
author | Ian Lynagh <igloo@earth.li> | 2012-05-06 19:39:41 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-05-06 19:39:41 +0100 |
commit | 9949db0a135da28d3d5497b0d31a6a50dad4a8c6 (patch) | |
tree | 7b5cf9d40548a3c9de9be2e5fcb61898313d280e /ghc.mk | |
parent | f09812ded085223d3f9dcb50c2c9cdc912984844 (diff) | |
download | haskell-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.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) \ |