diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-10-10 22:43:51 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-10-10 22:52:39 +0200 |
commit | 2faa09dc23a1bbb9b385afe8bea639da4a18bc73 (patch) | |
tree | 735c51afe85018aaba7f293d5077909bfb3d4baa /sys-libs/libcxxabi/libcxxabi-16.0.0.9999.ebuild | |
parent | sys-libs/llvm-libunwind: Use tc-get-c-rtlib (diff) | |
download | gentoo-2faa09dc23a1bbb9b385afe8bea639da4a18bc73.tar.gz gentoo-2faa09dc23a1bbb9b385afe8bea639da4a18bc73.tar.bz2 gentoo-2faa09dc23a1bbb9b385afe8bea639da4a18bc73.zip |
sys-libs/libcxxabi: Use tc-get-c-rtlib
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-libs/libcxxabi/libcxxabi-16.0.0.9999.ebuild')
-rw-r--r-- | sys-libs/libcxxabi/libcxxabi-16.0.0.9999.ebuild | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sys-libs/libcxxabi/libcxxabi-16.0.0.9999.ebuild b/sys-libs/libcxxabi/libcxxabi-16.0.0.9999.ebuild index 130101c20cb9..8d8f8212d31e 100644 --- a/sys-libs/libcxxabi/libcxxabi-16.0.0.9999.ebuild +++ b/sys-libs/libcxxabi/libcxxabi-16.0.0.9999.ebuild @@ -62,15 +62,9 @@ multilib_src_configure() { strip-unsupported-flags fi - # link against compiler-rt instead of libgcc if this is what clang does - local want_compiler_rt=OFF - if tc-is-clang; then - local compiler_rt=$($(tc-getCC) ${CFLAGS} ${CPPFLAGS} \ - ${LDFLAGS} -print-libgcc-file-name) - if [[ ${compiler_rt} == *libclang_rt* ]]; then - want_compiler_rt=ON - fi - fi + # link to compiler-rt + local use_compiler_rt=OFF + [[ $(tc-get-c-rtlib) == compiler-rt ]] && use_compiler_rt=ON local libdir=$(get_libdir) local mycmakeargs=( @@ -82,7 +76,7 @@ multilib_src_configure() { -DLIBCXXABI_ENABLE_SHARED=ON -DLIBCXXABI_ENABLE_STATIC=$(usex static-libs) -DLIBCXXABI_INCLUDE_TESTS=$(usex test) - -DLIBCXXABI_USE_COMPILER_RT=${want_compiler_rt} + -DLIBCXXABI_USE_COMPILER_RT=${use_compiler_rt} # upstream is omitting standard search path for this # probably because gcc & clang are bundling their own unwind.h |