diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-28 12:57:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-28 12:57:12 +0000 |
commit | ddcaaaec485fcf5238dfbabb6df62a11e95a1f26 (patch) | |
tree | 36d8f603e10fc82bd01ff21c1101388090965f80 /sys-devel/clang-common/clang-common-18.0.0.9999.ebuild | |
parent | 3afceb132f6ff416c4f715f21857dacb9c605bc8 (diff) |
gentoo auto-resync : 28:01:2024 - 12:57:11
Diffstat (limited to 'sys-devel/clang-common/clang-common-18.0.0.9999.ebuild')
-rw-r--r-- | sys-devel/clang-common/clang-common-18.0.0.9999.ebuild | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/sys-devel/clang-common/clang-common-18.0.0.9999.ebuild b/sys-devel/clang-common/clang-common-18.0.0.9999.ebuild index dbc4a213e1c4..a50679150043 100644 --- a/sys-devel/clang-common/clang-common-18.0.0.9999.ebuild +++ b/sys-devel/clang-common/clang-common-18.0.0.9999.ebuild @@ -11,8 +11,8 @@ HOMEPAGE="https://llvm.org/" LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" IUSE=" - default-compiler-rt default-libcxx default-lld llvm-libunwind - hardened + default-compiler-rt default-libcxx default-lld + bootstrap-prefix hardened llvm-libunwind " PDEPEND=" @@ -74,6 +74,12 @@ _doclang_cfg() { EOF done + if use kernel_Darwin; then + cat >> "${ED}/etc/clang/${triple}-clang++.cfg" <<-EOF || die + -lc++abi + EOF + fi + newins - "${triple}-clang-cpp.cfg" <<-EOF # This configuration file is used by the ${triple}-clang-cpp driver. @gentoo-common.cfg @@ -242,6 +248,26 @@ src_install() { local abi_chost=$(get_abi_CHOST "${abi}") doclang_cfg "${abi_chost}" done + + if use kernel_Darwin; then + cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die + # Gentoo Prefix on Darwin + -Wl,-search_paths_first + -Wl,-rpath,${EPREFIX}/usr/lib + -L ${EPREFIX}/usr/lib + -isystem ${EPREFIX}/usr/include + -isysroot ${EPREFIX}/MacOSX.sdk + EOF + if use bootstrap-prefix ; then + # bootstrap-prefix is only set during stage2 of bootstrapping + # Prefix, where EPREFIX is set to EPREFIX/tmp. + # Here we need to point it at the future lib dir of the stage3's + # EPREFIX. + cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die + -Wl,-rpath,${EPREFIX}/../usr/lib + EOF + fi + fi } pkg_preinst() { |