Skip to content

Commit 2851fe1

Browse files
authored
Merge pull request #10616 from geekosaur/openbsd-overstrip
OpenBSD `--strip-unneeded` strips too much
2 parents e6a20a3 + cd4bd1f commit 2851fe1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Cabal/src/Distribution/Simple/Program/Strip.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ stripLib verbosity (Platform arch os) progdb path = do
5858
IOS -> return ()
5959
AIX -> return ()
6060
Solaris -> return ()
61+
OpenBSD ->
62+
-- '--strip-unneeded' sometimes strips too much on OpenBSD.
63+
-- -- See https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/lang/ghc/patches/patch-libraries_Cabal_Cabal_Distribution_Simple_Program_Strip_hs
64+
return ()
6165
Windows ->
6266
-- Stripping triggers a bug in 'strip.exe' for
6367
-- libraries with lots identically named modules. See

changelog.d/pr-10616

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
synopsis: "OpenBSD `--strip-unneeded` sometimes strips too much"
3+
packages: [Cabal]
4+
prs: 10616
5+
---
6+
7+
OpenBSD's `--strip-unneeded` thinks some symbols are unneeded that are in fact
8+
needed when C bits are involved, so suppress its use.
9+
10+
Taken from the OpenBSD ports repo (https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/lang/ghc/patches/patch-libraries_Cabal_Cabal_Distribution_Simple_Program_Strip_hs);
11+
brought to our attention by maerwald.

0 commit comments

Comments
 (0)