diff options
author | Sam James <sam@gentoo.org> | 2023-12-16 08:35:46 +0000 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-12-16 11:53:24 +0200 |
commit | 1387931f892a0eadab06a7f9f6cc2854f1105c24 (patch) | |
tree | 90547bd13b489ac5bbcf9af5fa4bb7aa31637451 /dev-libs | |
parent | kde-frameworks/kuserfeedback: drop 1.3.0 (diff) | |
download | gentoo-1387931f892a0eadab06a7f9f6cc2854f1105c24.tar.gz gentoo-1387931f892a0eadab06a7f9f6cc2854f1105c24.tar.bz2 gentoo-1387931f892a0eadab06a7f9f6cc2854f1105c24.zip |
dev-libs/nss: fix bitness check for LTO
Closes: https://bugs.gentoo.org/917792
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/nss/nss-3.96.ebuild | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/dev-libs/nss/nss-3.96.ebuild b/dev-libs/nss/nss-3.96.ebuild index 5cab1c328c41..35503a7b5874 100644 --- a/dev-libs/nss/nss-3.96.ebuild +++ b/dev-libs/nss/nss-3.96.ebuild @@ -105,19 +105,15 @@ nssarch() { } nssbits() { - # bgo#917792 - if tc-is-clang && use x86 ; then - filter-lto - fi - local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS" if [[ ${1} == BUILD_ ]]; then cc=$(tc-getBUILD_CC) else cc=$(tc-getCC) fi + # TODO: Port this to toolchain-funcs tc-get-ptr-size/tc-get-build-ptr-size echo > "${T}"/test.c || die - ${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die + ${cc} ${!cppflags} ${!cflags} -fno-lto -c "${T}"/test.c -o "${T}/${1}test.o" || die case $(file "${T}/${1}test.o") in *32-bit*x86-64*) echo USE_X32=1;; *64-bit*|*ppc64*|*x86_64*) echo USE_64=1;; @@ -175,10 +171,6 @@ multilib_src_compile() { export CC_IS_GCC=1 elif tc-is-clang; then export CC_IS_CLANG=1 - if use x86 ; then - filter-lto - elog "lto disabled when using clang on x86. bgo#917792" - fi fi export NSS_DISABLE_GTESTS=$(usex !test 1 0) |