Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/crossdev:master commit in: /
Date: Tue, 08 May 2018 21:40:17
Message-Id: 1525815520.56de3cc88635c85f96298072111a81dadf424e9f.slyfox@gentoo
1 commit: 56de3cc88635c85f96298072111a81dadf424e9f
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 8 21:38:40 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue May 8 21:38:40 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=56de3cc8
7
8 crossdev: disable USE=pie for all mingw targets
9
10 Jernej reports that x86_64-w64-mingw32 also exhibits
11 the same runtime failures with USE=pie.
12
13 Reported-by: Jernej Simoncic
14 Bug: https://bugs.gentoo.org/644930
15 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
16
17 crossdev | 3 ++-
18 1 file changed, 2 insertions(+), 1 deletion(-)
19
20 diff --git a/crossdev b/crossdev
21 index bb03316..a4b32a2 100755
22 --- a/crossdev
23 +++ b/crossdev
24 @@ -393,7 +393,8 @@ parse_target() {
25 # check as '$CC -fPIC -c -x c - </dev/null'
26 avr*|mmix*) pie_support=no;;
27 # [2.] mingw32 startup code is broken: bug #644930
28 - mingw32|i686-w64-mingw32) pie_support=no;;
29 + # at least on i686-w64-mingw32 and x86_64-w64-mingw32
30 + mingw*|*-mingw*) pie_support=no;;
31 esac
32 if [[ $pie_support = "no" ]]; then
33 # pie is >=gcc-6, nopie is <gcc-6