commit:     9cba1867a54e16cf8657b32d184cf436432a6dd5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 28 06:09:57 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 28 06:41:07 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cba1867

app-portage/eix: Fix Cygwin linking issues

Closes: https://bugs.gentoo.org/687988
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-portage/eix/eix-0.33.8.ebuild | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/app-portage/eix/eix-0.33.8.ebuild 
b/app-portage/eix/eix-0.33.8.ebuild
index d6ad1512e48..49fba0c878c 100644
--- a/app-portage/eix/eix-0.33.8.ebuild
+++ b/app-portage/eix/eix-0.33.8.ebuild
@@ -76,10 +76,8 @@ 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
+       # work around https://github.com/vaeth/eix/issues/64, bug#687988
+       local -x mv_fCXXFLAGS_cache='-mindirect-branch=thunk'
 
        econf "${myconf[@]}"
 }

Reply via email to