app-portage/eix: Fix Cygwin linking issues
authorMichał Górny <mgorny@gentoo.org>
Sun, 28 Jul 2019 06:09:57 +0000 (08:09 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 28 Jul 2019 06:41:07 +0000 (08:41 +0200)
Closes: https://bugs.gentoo.org/687988
Signed-off-by: Michał Górny <mgorny@gentoo.org>
app-portage/eix/eix-0.33.8.ebuild

index d6ad1512e486c065919af3ff763fcfbc56791c5b..49fba0c878cd88705f5b68ae8f99173dd2112f6c 100644 (file)
@@ -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[@]}"
 }