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-17.0.6-r1.ebuild | |
parent | 3afceb132f6ff416c4f715f21857dacb9c605bc8 (diff) |
gentoo auto-resync : 28:01:2024 - 12:57:11
Diffstat (limited to 'sys-devel/clang-common/clang-common-17.0.6-r1.ebuild')
-rw-r--r-- | sys-devel/clang-common/clang-common-17.0.6-r1.ebuild | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/sys-devel/clang-common/clang-common-17.0.6-r1.ebuild b/sys-devel/clang-common/clang-common-17.0.6-r1.ebuild index 7811c78f5eae..0083e09889b4 100644 --- a/sys-devel/clang-common/clang-common-17.0.6-r1.ebuild +++ b/sys-devel/clang-common/clang-common-17.0.6-r1.ebuild @@ -12,8 +12,8 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~ppc-macos ~x64-macos" IUSE=" - default-compiler-rt default-libcxx default-lld llvm-libunwind - hardened + default-compiler-rt default-libcxx default-lld + bootstrap-prefix hardened llvm-libunwind " PDEPEND=" @@ -75,6 +75,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 @@ -241,6 +247,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() { |