diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-04 20:14:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-04 20:14:38 +0100 |
commit | 34f71cb8541190212fa250ceb3dafb53f383beea (patch) | |
tree | 75894a0bd212c9a6464b37d48f418fcb5cc3ff82 /sys-devel/clang-common/clang-common-19.0.0.9999.ebuild | |
parent | 18bf6672cbde96e8498ce4bfc974af9bb4f95613 (diff) |
gentoo auto-resync : 04:04:2024 - 20:14:38
Diffstat (limited to 'sys-devel/clang-common/clang-common-19.0.0.9999.ebuild')
-rw-r--r-- | sys-devel/clang-common/clang-common-19.0.0.9999.ebuild | 18 |
1 files changed, 13 insertions, 5 deletions
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 45196776694b..f260391ba4ab 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 @@ -72,6 +72,11 @@ _doclang_cfg() { @gentoo-common.cfg @gentoo-common-ld.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${tool}.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi done if use kernel_Darwin; then @@ -84,6 +89,11 @@ _doclang_cfg() { # This configuration file is used by the ${triple}-clang-cpp driver. @gentoo-common.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${triple}-clang-cpp.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi # Install symlinks for triples with other vendor strings since some # programs insist on mangling the triple. @@ -174,11 +184,9 @@ src_install() { -include "${EPREFIX}/usr/include/gentoo/fortify.h" EOF - if use amd64; then - cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die - -Xarch_host -fcf-protection=$(usex cet full none) - EOF - fi + newins - gentoo-cet.cfg <<-EOF + -Xarch_host -fcf-protection=$(usex cet full none) + EOF if use kernel_Darwin; then newins - gentoo-hardened-ld.cfg <<-EOF |