dev-util/mingw64-runtime: filter LDFLAGS for hash style
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 5 Oct 2018 22:41:32 +0000 (23:41 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 5 Oct 2018 22:43:30 +0000 (23:43 +0100)
commit1da0f835568fceb6783247e174ea9dcb32bceac1
tree9bc68f6957e902972e09cbdede119426fa2346da
parent0f0eddcd7cfb26c8f6c16a3f812400c0a090d899
dev-util/mingw64-runtime: filter LDFLAGS for hash style

Normally mingw-64 does not use dynamic linker.
One exception is at ./configure time where $LDFLAGS
is used by default.

When LDFFLAGS=-Wl,--hash-style=gnu is passed (default
on linux) to mingw64-runtime a few things are not
auto-detected. One of them is  __CTORS_LIST__ / __DTORS_LIST__
support by binutils' target ld.

If constructors are not provided then binaries start
crashing at shutdown.

The workaround is to filter out -Wl,--hash-style=* options.

Longer-term fix will be to install mingw64-runtime into
target: bug #642604. That wa LDFLAGS from CBUILD will not
leak into libc packages.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11
dev-util/mingw64-runtime/mingw64-runtime-6.0.0-r1.ebuild [moved from dev-util/mingw64-runtime/mingw64-runtime-6.0.0.ebuild with 88% similarity]