app-portage/eix: work around cygwin linker issue
authorMichael Haubenwallner <haubi@gentoo.org>
Thu, 13 Jun 2019 09:26:39 +0000 (11:26 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 28 Jul 2019 06:41:06 +0000 (08:41 +0200)
Upstream report: https://github.com/vaeth/eix/issues/64

Closes: https://bugs.gentoo.org/687988
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
app-portage/eix/eix-0.33.8.ebuild

index 240099310a8fb736660e5a662a679e122287032a..d6ad1512e486c065919af3ff763fcfbc56791c5b 100644 (file)
@@ -76,6 +76,11 @@ src_configure() {
        # https://github.com/vaeth/eix/issues/35
        append-cxxflags -std=c++14
 
+       if [[ ${CHOST} == *-cygwin* ]]; then
+               # work around https://github.com/vaeth/eix/issues/64, bug#687988
+               export mv_fCXXFLAGS_cache='-mindirect-branch=thunk'
+       fi
+
        econf "${myconf[@]}"
 }