From: | "Sergei Trofimovich (slyfox)" <slyfox@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-lang/ghc/files: ghc-7.8.3-prim-lm.patch |
Date: | Wed, 30 Jul 2014 11:47:40 |
Message-Id: | 20140730114734.C493E20035@flycatcher.gentoo.org |
1 | slyfox 14/07/30 11:47:32 |
2 | |
3 | Added: ghc-7.8.3-prim-lm.patch |
4 | Log: |
5 | Fix underlinking of ghc-prim. Workarounds ghc-stage2 ld.so SIGSEGV on hardened (reported by aranea). |
6 | |
7 | (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-lang/ghc/files/ghc-7.8.3-prim-lm.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ghc/files/ghc-7.8.3-prim-lm.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ghc/files/ghc-7.8.3-prim-lm.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: ghc-7.8.3-prim-lm.patch |
16 | =================================================================== |
17 | Fix underlinking on ghc-prim. |
18 | Fixes ghc-stage2 crahs on hardened toolchain. |
19 | Reported-by: aranea |
20 | diff --git a/libraries/ghc-prim/ghc-prim.cabal b/libraries/ghc-prim/ghc-prim.cabal |
21 | index ffb32af..0431380 100644 |
22 | --- a/libraries/ghc-prim/ghc-prim.cabal |
23 | +++ b/libraries/ghc-prim/ghc-prim.cabal |
24 | @@ -65,3 +65,7 @@ Library |
25 | -- We need to set the package name to ghc-prim (without a version number) |
26 | -- as it's magic. |
27 | ghc-options: -package-name ghc-prim |
28 | + |
29 | + -- ghc 'sin' (and other) primops generate 'libm' calls, |
30 | + -- but ghc itself does not add '-lm' |
31 | + extra-libraries: m |