Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 928460
Collapse All | Expand All

(-)/home/nvinson/Repos/gentoo/sys-devel/clang-common/clang-common-18.1.4-r3.ebuild (-5 / +13 lines)
Lines 71-80 _doclang_cfg() { Link Here
71
		newins - "${tool}.cfg" <<-EOF
71
		newins - "${tool}.cfg" <<-EOF
72
			# This configuration file is used by ${tool} driver.
72
			# This configuration file is used by ${tool} driver.
73
			@gentoo-common.cfg
73
			@gentoo-common.cfg
74
			@gentoo-common-ld.cfg
74
			@gentoo-common-ld.cfg
75
		EOF
75
		EOF
76
		if [[ ${triple} == x86_64* ]]; then
77
			cat >> "${ED}/etc/clang/${tool}.cfg" <<-EOF || die
78
				@gentoo-cet.cfg
79
			EOF
80
		fi
76
	done
81
	done
77
82
78
	if use kernel_Darwin; then
83
	if use kernel_Darwin; then
79
		cat >> "${ED}/etc/clang/${triple}-clang++.cfg" <<-EOF || die
84
		cat >> "${ED}/etc/clang/${triple}-clang++.cfg" <<-EOF || die
80
			-lc++abi
85
			-lc++abi
Lines 83-92 _doclang_cfg() { Link Here
83
88
84
	newins - "${triple}-clang-cpp.cfg" <<-EOF
89
	newins - "${triple}-clang-cpp.cfg" <<-EOF
85
		# This configuration file is used by the ${triple}-clang-cpp driver.
90
		# This configuration file is used by the ${triple}-clang-cpp driver.
86
		@gentoo-common.cfg
91
		@gentoo-common.cfg
87
	EOF
92
	EOF
93
	if [[ ${triple} == x86_64* ]]; then
94
		cat >> "${ED}/etc/clang/${triple}-clang-cpp.cfg" <<-EOF || die
95
			@gentoo-cet.cfg
96
		EOF
97
	fi
88
98
89
	# Install symlinks for triples with other vendor strings since some
99
	# Install symlinks for triples with other vendor strings since some
90
	# programs insist on mangling the triple.
100
	# programs insist on mangling the triple.
91
	local vendor
101
	local vendor
92
	for vendor in gentoo pc unknown; do
102
	for vendor in gentoo pc unknown; do
Lines 173-187 src_install() { Link Here
173
		-Xarch_host -fstack-protector-strong
183
		-Xarch_host -fstack-protector-strong
174
		-fPIE
184
		-fPIE
175
		-include "${EPREFIX}/usr/include/gentoo/fortify.h"
185
		-include "${EPREFIX}/usr/include/gentoo/fortify.h"
176
	EOF
186
	EOF
177
187
178
	if use amd64; then
188
	newins - gentoo-cet.cfg <<-EOF
179
		cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die
189
		-Xarch_host -fcf-protection=$(usex cet full none)
180
			-Xarch_host -fcf-protection=$(usex cet full none)
190
	EOF
181
		EOF
182
	fi
183
191
184
	if use kernel_Darwin; then
192
	if use kernel_Darwin; then
185
		newins - gentoo-hardened-ld.cfg <<-EOF
193
		newins - gentoo-hardened-ld.cfg <<-EOF
186
			# There was -Wl,-z,relro here, but it's not supported on Mac
194
			# There was -Wl,-z,relro here, but it's not supported on Mac
187
			# TODO: investigate whether -bind_at_load or -read_only_stubs will do the job
195
			# TODO: investigate whether -bind_at_load or -read_only_stubs will do the job

Return to bug 928460