commit:     56de3cc88635c85f96298072111a81dadf424e9f
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue May  8 21:38:40 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue May  8 21:38:40 2018 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=56de3cc8

crossdev: disable USE=pie for all mingw targets

Jernej reports that x86_64-w64-mingw32 also exhibits
the same runtime failures with USE=pie.

Reported-by: Jernej Simoncic
Bug: https://bugs.gentoo.org/644930
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 crossdev | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crossdev b/crossdev
index bb03316..a4b32a2 100755
--- a/crossdev
+++ b/crossdev
@@ -393,7 +393,8 @@ parse_target() {
                #       check as '$CC -fPIC -c -x c - </dev/null'
                avr*|mmix*) pie_support=no;;
                # [2.] mingw32 startup code is broken: bug #644930
-               mingw32|i686-w64-mingw32) pie_support=no;;
+               #      at least on i686-w64-mingw32 and x86_64-w64-mingw32
+               mingw*|*-mingw*) pie_support=no;;
        esac
        if [[ $pie_support = "no" ]]; then
                # pie is >=gcc-6, nopie is <gcc-6

Reply via email to