diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-11 19:38:57 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-11 19:38:57 +0100 |
commit | c650f7cf611feaa59620fd8626e78108fa3b5e51 (patch) | |
tree | 31eba3ef4db85c7cef7cfb89ee87c81e732928a9 /sys-libs/libcxx/libcxx-13.0.1.ebuild | |
parent | 59970d0b9cd0a564851f255aebb29a9f76e39c19 (diff) |
gentoo auto-resync : 11:10:2022 - 19:38:57
Diffstat (limited to 'sys-libs/libcxx/libcxx-13.0.1.ebuild')
-rw-r--r-- | sys-libs/libcxx/libcxx-13.0.1.ebuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys-libs/libcxx/libcxx-13.0.1.ebuild b/sys-libs/libcxx/libcxx-13.0.1.ebuild index 3021d859b872..f7db45b21571 100644 --- a/sys-libs/libcxx/libcxx-13.0.1.ebuild +++ b/sys-libs/libcxx/libcxx-13.0.1.ebuild @@ -89,10 +89,14 @@ multilib_src_configure() { extra_libs+=( -lunwind ) # if we're using libunwind and clang with compiler-rt, we want # to link to compiler-rt instead of -lgcc_s - if [[ $(tc-get-c-rtlib) == compiler-rt ]]; then - want_gcc_s=OFF - want_compiler_rt=ON - extra_libs+=( "${compiler_rt}" ) + if tc-is-clang; then + local compiler_rt=$($(tc-getCC) ${CFLAGS} ${CPPFLAGS} \ + ${LDFLAGS} -print-libgcc-file-name) + if [[ ${compiler_rt} == *libclang_rt* ]]; then + want_gcc_s=OFF + want_compiler_rt=ON + extra_libs+=( "${compiler_rt}" ) + fi fi elif [[ ${CHOST} == *-darwin* ]] && tc-is-clang; then # clang-based darwin prefix disables libunwind useflag during |