summaryrefslogtreecommitdiff
path: root/sys-devel/clang-common
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-28 12:57:12 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-28 12:57:12 +0000
commitddcaaaec485fcf5238dfbabb6df62a11e95a1f26 (patch)
tree36d8f603e10fc82bd01ff21c1101388090965f80 /sys-devel/clang-common
parent3afceb132f6ff416c4f715f21857dacb9c605bc8 (diff)
gentoo auto-resync : 28:01:2024 - 12:57:11
Diffstat (limited to 'sys-devel/clang-common')
-rw-r--r--sys-devel/clang-common/Manifest16
-rw-r--r--sys-devel/clang-common/clang-common-16.0.6-r2.ebuild29
-rw-r--r--sys-devel/clang-common/clang-common-17.0.6-r1.ebuild30
-rw-r--r--sys-devel/clang-common/clang-common-18.0.0.9999.ebuild30
-rw-r--r--sys-devel/clang-common/clang-common-18.0.0_pre20240106.ebuild30
-rw-r--r--sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild30
-rw-r--r--sys-devel/clang-common/clang-common-18.0.0_pre20240120.ebuild30
-rw-r--r--sys-devel/clang-common/clang-common-19.0.0.9999.ebuild30
-rw-r--r--sys-devel/clang-common/metadata.xml1
9 files changed, 203 insertions, 23 deletions
diff --git a/sys-devel/clang-common/Manifest b/sys-devel/clang-common/Manifest
index 7f6b3bd17c70..233ceb046e13 100644
--- a/sys-devel/clang-common/Manifest
+++ b/sys-devel/clang-common/Manifest
@@ -9,12 +9,12 @@ DIST llvm-project-8d817f6479a5df874028a8b40fd30aecd3479005.tar.gz 204890108 BLAK
DIST llvm-project-9eb0f86c279f40a792ec27bf0e9b491b8c90a640.tar.gz 205195168 BLAKE2B c3d051270958216196d6051d41e78168a7027714c5658c7edc70d274ed91f9d4ee16e8d1f92672bf252c65005c636c380766210ac3d80b4ac2f9f6305aefa29b SHA512 ee62acdfa756a2ddeb46fcafa364489885b6ecc50c87f365af42f308ebc87b9674c33c2f5a84c5169d9c9cada08e4fffe35d2eff48f05b70e791e27ac2c8b347
DIST llvm-project-a085402ef54379758e6c996dbaedfcb92ad222b5.tar.gz 204569231 BLAKE2B 75403225fbe54f0921b279b237a90f1922b16997d1538fa5f225e04451fa2fc4a28e886efb7460ef0c26a3a964f0c57084e331b0736fa223926259c76d873200 SHA512 b8c6b0c7c0a4c369ecfa7ac71cf96549a19853e14bdf061b6b54429ce7ed998b236bb9ed3adbd6bf1c70c7e975508f751ebd0031ac2ff474d32216048a1c5f2d
EBUILD clang-common-15.0.7-r7.ebuild 5462 BLAKE2B 098697c65115e672a1e878167997d820c93cad6a71c5a1dc17c731a031d37f20e50ef41e2f1d3238bc91065ba23bab5db4ab48e8274be9db3cb086ec6cdf7868 SHA512 7500bf0c4fde82b90aac68d09b95a49c241fae8b0d2340f7780e9baed1c85d855e45c4296a7daaa0b831a07f442e0be4faf6510a335fa5c979b3061e28fdb99d
-EBUILD clang-common-16.0.6-r2.ebuild 4972 BLAKE2B 7ce71ef4c5ca19ef5847c90a23662b30e028d97fba045ec64976a3093c94e65bc8b5b04535d2ecf9ec51526fedc6b2b264135162acedcfb6df88cf426ce36357 SHA512 490b4afdc3ebbac15152d8da7cb86b3f2030e7ea1c70b09542f8bfd839d0194b97ee979fffcfb19fba8cca97ecfe565a5e77968b9afd618851772d7ccf444624
-EBUILD clang-common-17.0.6-r1.ebuild 7633 BLAKE2B 5359c9e23fe8be96256560012b1e1a16f7ca7557e19246d4e5bf9b490593f9c6d34b5298ef2ff00ac28cd84e485cbf979990eddd4d4025505d54b0200951dfa4 SHA512 3e6dd86cb296c488ea919b57c29c905694bba8dfcbe4d18921a06eae26c5d19685003a550376c61e6cf1dcf7d08c643adc4b0c2c104c593d76dff32dc0afbfe3
-EBUILD clang-common-18.0.0.9999.ebuild 7650 BLAKE2B b8d648f4bf5b1713b5d6b6b0f8f0c748e27137dc377496df12ed3621c9aacdc7efb299f84d92925e9fe4d6e06ce7a770f4c3e7c311e789fde2bec20d5c131d25 SHA512 de7ee9e4c0ef261ffca3567ebe4d74dcab3ec2c4032af0c2c11cb40634b88f044a83031317b7c54e5e3420d6345a38b49e472669b762dd56d4fa81e4be0f2ffe
-EBUILD clang-common-18.0.0_pre20240106.ebuild 7650 BLAKE2B b8d648f4bf5b1713b5d6b6b0f8f0c748e27137dc377496df12ed3621c9aacdc7efb299f84d92925e9fe4d6e06ce7a770f4c3e7c311e789fde2bec20d5c131d25 SHA512 de7ee9e4c0ef261ffca3567ebe4d74dcab3ec2c4032af0c2c11cb40634b88f044a83031317b7c54e5e3420d6345a38b49e472669b762dd56d4fa81e4be0f2ffe
-EBUILD clang-common-18.0.0_pre20240113.ebuild 7650 BLAKE2B b8d648f4bf5b1713b5d6b6b0f8f0c748e27137dc377496df12ed3621c9aacdc7efb299f84d92925e9fe4d6e06ce7a770f4c3e7c311e789fde2bec20d5c131d25 SHA512 de7ee9e4c0ef261ffca3567ebe4d74dcab3ec2c4032af0c2c11cb40634b88f044a83031317b7c54e5e3420d6345a38b49e472669b762dd56d4fa81e4be0f2ffe
-EBUILD clang-common-18.0.0_pre20240120.ebuild 7650 BLAKE2B b8d648f4bf5b1713b5d6b6b0f8f0c748e27137dc377496df12ed3621c9aacdc7efb299f84d92925e9fe4d6e06ce7a770f4c3e7c311e789fde2bec20d5c131d25 SHA512 de7ee9e4c0ef261ffca3567ebe4d74dcab3ec2c4032af0c2c11cb40634b88f044a83031317b7c54e5e3420d6345a38b49e472669b762dd56d4fa81e4be0f2ffe
-EBUILD clang-common-19.0.0.9999.ebuild 7650 BLAKE2B b8d648f4bf5b1713b5d6b6b0f8f0c748e27137dc377496df12ed3621c9aacdc7efb299f84d92925e9fe4d6e06ce7a770f4c3e7c311e789fde2bec20d5c131d25 SHA512 de7ee9e4c0ef261ffca3567ebe4d74dcab3ec2c4032af0c2c11cb40634b88f044a83031317b7c54e5e3420d6345a38b49e472669b762dd56d4fa81e4be0f2ffe
+EBUILD clang-common-16.0.6-r2.ebuild 5681 BLAKE2B a00b9f67b615654b53eb4c55321c30bca9c52e080eca27cc5a9d438813c3b91538992b87fe84dcc43ee6d88fd6b206daa5c92dad11fcec93b1333ced403dfd1c SHA512 103ac4805618935c9208d8d970e52497818c83c620e2ca2646f18b43884055701cebff5b6bbba3365e9728bb7860722017a2fc18d28353ce362ec92e36742940
+EBUILD clang-common-17.0.6-r1.ebuild 8385 BLAKE2B f39a7d9ae89db10077c36f9daa26b7585ee362e2f8bdd8382e157159052fb45d5ad7a8e526e6474681b06d2dd642712056fcdb5b48b2db89b397e8b17810f7a5 SHA512 338efdac1a0acffd76ffb45ef427f94349b4184908a3f2287f431ec559e96164e56930b6b27db1a58ae86a5faeaacd38140e8d6fa79ff4e95a999b682d8ce9ef
+EBUILD clang-common-18.0.0.9999.ebuild 8402 BLAKE2B 3adfd02f0482b3bec8ee07b8ae9f6ccdf368a5dbb70e31dcc09938a30afc2c50b02f474d9b6a78c114339305d69c1b998591790631cd22b5d85732a6416bd3ea SHA512 498ab238f0c032d80944da74818c4d495082a87b220bdd17dda3eb8e9a070e9636e6f79fc991554c96cdd90670e8a18ebca2ae222b26d8f93c8fa4b5615c6f81
+EBUILD clang-common-18.0.0_pre20240106.ebuild 8402 BLAKE2B 3adfd02f0482b3bec8ee07b8ae9f6ccdf368a5dbb70e31dcc09938a30afc2c50b02f474d9b6a78c114339305d69c1b998591790631cd22b5d85732a6416bd3ea SHA512 498ab238f0c032d80944da74818c4d495082a87b220bdd17dda3eb8e9a070e9636e6f79fc991554c96cdd90670e8a18ebca2ae222b26d8f93c8fa4b5615c6f81
+EBUILD clang-common-18.0.0_pre20240113.ebuild 8402 BLAKE2B 3adfd02f0482b3bec8ee07b8ae9f6ccdf368a5dbb70e31dcc09938a30afc2c50b02f474d9b6a78c114339305d69c1b998591790631cd22b5d85732a6416bd3ea SHA512 498ab238f0c032d80944da74818c4d495082a87b220bdd17dda3eb8e9a070e9636e6f79fc991554c96cdd90670e8a18ebca2ae222b26d8f93c8fa4b5615c6f81
+EBUILD clang-common-18.0.0_pre20240120.ebuild 8402 BLAKE2B 3adfd02f0482b3bec8ee07b8ae9f6ccdf368a5dbb70e31dcc09938a30afc2c50b02f474d9b6a78c114339305d69c1b998591790631cd22b5d85732a6416bd3ea SHA512 498ab238f0c032d80944da74818c4d495082a87b220bdd17dda3eb8e9a070e9636e6f79fc991554c96cdd90670e8a18ebca2ae222b26d8f93c8fa4b5615c6f81
+EBUILD clang-common-19.0.0.9999.ebuild 8402 BLAKE2B 3adfd02f0482b3bec8ee07b8ae9f6ccdf368a5dbb70e31dcc09938a30afc2c50b02f474d9b6a78c114339305d69c1b998591790631cd22b5d85732a6416bd3ea SHA512 498ab238f0c032d80944da74818c4d495082a87b220bdd17dda3eb8e9a070e9636e6f79fc991554c96cdd90670e8a18ebca2ae222b26d8f93c8fa4b5615c6f81
EBUILD clang-common-19.0.0_pre20240127.ebuild 7650 BLAKE2B b8d648f4bf5b1713b5d6b6b0f8f0c748e27137dc377496df12ed3621c9aacdc7efb299f84d92925e9fe4d6e06ce7a770f4c3e7c311e789fde2bec20d5c131d25 SHA512 de7ee9e4c0ef261ffca3567ebe4d74dcab3ec2c4032af0c2c11cb40634b88f044a83031317b7c54e5e3420d6345a38b49e472669b762dd56d4fa81e4be0f2ffe
-MISC metadata.xml 735 BLAKE2B 12ea133df3d7eb9367a65e572ef91893e654d5b77caa27c66e4b5b41ba90ebc5e619eb78dfff2a67183d2c1cbfcf35fa903b2bb75604ce153d5cedfce5346e3c SHA512 8ed6b12d4f2aa1985897a8d81ce898dbc0d14ac222f3d0f259cbe80fbb8b2349dff7677627daeaf39a422f290200da4fac6348abc81c9e35da0ca73a11cfdd83
+MISC metadata.xml 865 BLAKE2B decae84b1cb0faa0683824073ff458dc8ca638ae02593bb0ac5850f893eabebb989d68b5d5eca2a2d2a89659f9c3c645face5dd5e34255b01dd43eaa6c5675cb SHA512 aa2caddce30ede46b2e78ada1645de0a8dd67d15c5e466d51fe9b8c1197a03c42da78f3d1f69ec22f1e656ac094ba02b351acfe20533088253245d95c796e646
diff --git a/sys-devel/clang-common/clang-common-16.0.6-r2.ebuild b/sys-devel/clang-common/clang-common-16.0.6-r2.ebuild
index 88fce05309fd..4385b576d482 100644
--- a/sys-devel/clang-common/clang-common-16.0.6-r2.ebuild
+++ b/sys-devel/clang-common/clang-common-16.0.6-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -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="
@@ -153,6 +153,29 @@ src_install() {
@gentoo-common.cfg
EOF
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
+ cat >> "${ED}/etc/clang/clang++.cfg" <<-EOF || die
+ -lc++abi
+ EOF
+ fi
}
pkg_preinst() {
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() {
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() {
diff --git a/sys-devel/clang-common/clang-common-18.0.0_pre20240106.ebuild b/sys-devel/clang-common/clang-common-18.0.0_pre20240106.ebuild
index dbc4a213e1c4..a50679150043 100644
--- a/sys-devel/clang-common/clang-common-18.0.0_pre20240106.ebuild
+++ b/sys-devel/clang-common/clang-common-18.0.0_pre20240106.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() {
diff --git a/sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild b/sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild
index dbc4a213e1c4..a50679150043 100644
--- a/sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild
+++ b/sys-devel/clang-common/clang-common-18.0.0_pre20240113.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() {
diff --git a/sys-devel/clang-common/clang-common-18.0.0_pre20240120.ebuild b/sys-devel/clang-common/clang-common-18.0.0_pre20240120.ebuild
index dbc4a213e1c4..a50679150043 100644
--- a/sys-devel/clang-common/clang-common-18.0.0_pre20240120.ebuild
+++ b/sys-devel/clang-common/clang-common-18.0.0_pre20240120.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() {
diff --git a/sys-devel/clang-common/clang-common-19.0.0.9999.ebuild b/sys-devel/clang-common/clang-common-19.0.0.9999.ebuild
index dbc4a213e1c4..a50679150043 100644
--- a/sys-devel/clang-common/clang-common-19.0.0.9999.ebuild
+++ b/sys-devel/clang-common/clang-common-19.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() {
diff --git a/sys-devel/clang-common/metadata.xml b/sys-devel/clang-common/metadata.xml
index 7ea033c083c9..1b10f34f3338 100644
--- a/sys-devel/clang-common/metadata.xml
+++ b/sys-devel/clang-common/metadata.xml
@@ -8,6 +8,7 @@
<remote-id type="github">llvm/llvm-project</remote-id>
</upstream>
<use>
+ <flag name="bootstrap-prefix">!!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for bootstrapping Gentoo Prefix</flag>
<flag name="default-compiler-rt">Use compiler-rt + libunwind instead of libgcc as the default rtlib for clang</flag>
<flag name="default-libcxx">Use libc++ instead of libstdc++ as the default stdlib for clang</flag>
<flag name="default-lld">Use lld as the default linker for clang</flag>