From 375cfd6650cc0360097dcd54515c97e42541af6d Mon Sep 17 00:00:00 2001
From: Johan Tibell <johan.tibell@gmail.com>
Date: Sun, 20 Apr 2014 09:51:39 +0200
Subject: [PATCH] Don't strip libraries on Windows

Stripping triggers a bug in strip.exe when there are lots of
identically named modules. The strip program has a limit in how it
generates temp file names, which eventually leads to name collision.

Fixes #1784.
---
 Cabal/Distribution/Simple/Program/Strip.hs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Cabal/Distribution/Simple/Program/Strip.hs b/Cabal/Distribution/Simple/Program/Strip.hs
index d1808e933a..d579409aa1 100644
--- a/Cabal/Distribution/Simple/Program/Strip.hs
+++ b/Cabal/Distribution/Simple/Program/Strip.hs
@@ -49,6 +49,10 @@ stripLib verbosity (Platform _arch os) conf path = do
            return ()
     IOS -> return ()
     Solaris -> return ()
+    Windows -> -- Stripping triggers a bug in 'strip.exe' for
+               -- libraries with lots identically named modules. See
+               -- #1784.
+               return()
     _   -> runStrip verbosity conf path args
   where
     args = ["--strip-unneeded"]
-- 
GitLab