diff options
Diffstat (limited to 'sys-devel/llvm/llvm-6.0.0.ebuild')
-rw-r--r-- | sys-devel/llvm/llvm-6.0.0.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-devel/llvm/llvm-6.0.0.ebuild b/sys-devel/llvm/llvm-6.0.0.ebuild index 506dba50c90e..9e9f2c105090 100644 --- a/sys-devel/llvm/llvm-6.0.0.ebuild +++ b/sys-devel/llvm/llvm-6.0.0.ebuild @@ -172,7 +172,10 @@ multilib_src_configure() { # workaround BMI bug in gcc-7 (fixed in 7.4) # https://bugs.gentoo.org/649880 - if tc-is-gcc && [[ $(gcc-major-version) -eq 7 && $(gcc-minor-version) -lt 4 ]]; then + # apply only to x86, https://bugs.gentoo.org/650506 + if tc-is-gcc && [[ ${MULTILIB_ABI_FLAG} == abi_x86* ]] && + [[ $(gcc-major-version) -eq 7 && $(gcc-minor-version) -lt 4 ]] + then local CFLAGS="${CFLAGS} -mno-bmi" local CXXFLAGS="${CXXFLAGS} -mno-bmi" fi |