diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-11 01:37:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-11 01:37:01 +0100 |
commit | 179be85ade6b2b47bf362865b5c375969ab5ddc8 (patch) | |
tree | 073bcd19b7e1bb84acd2f683936671ee88860970 /sys-libs/libcxx/libcxx-13.0.1.ebuild | |
parent | 948f9476d6a417da6048d4291bf36b0507293d63 (diff) |
gentoo auto-resync : 11:10:2022 - 01:37:00
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, 4 insertions, 8 deletions
diff --git a/sys-libs/libcxx/libcxx-13.0.1.ebuild b/sys-libs/libcxx/libcxx-13.0.1.ebuild index f7db45b21571..3021d859b872 100644 --- a/sys-libs/libcxx/libcxx-13.0.1.ebuild +++ b/sys-libs/libcxx/libcxx-13.0.1.ebuild @@ -89,14 +89,10 @@ 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-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 + if [[ $(tc-get-c-rtlib) == compiler-rt ]]; then + want_gcc_s=OFF + want_compiler_rt=ON + extra_libs+=( "${compiler_rt}" ) fi elif [[ ${CHOST} == *-darwin* ]] && tc-is-clang; then # clang-based darwin prefix disables libunwind useflag during |