Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 578064 | Differences between
and this patch

Collapse All | Expand All

(-)a/llvm-3.8.0.ebuild (-1 / +14 lines)
Lines 178-183 src_prepare() { Link Here
178
	# disable use of SDK on OSX, bug #568758
178
	# disable use of SDK on OSX, bug #568758
179
	sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die
179
	sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die
180
180
181
	# Workaround, can be compiled with gcc on Gentoo/FreeBSD, bug #578064
182
	use kernel_FreeBSD && [[ $(tc-getCC) == *gcc* ]] && append-cppflags "-D_GLIBCXX_USE_C99"
183
181
	if use clang; then
184
	if use clang; then
182
		# Automatically select active system GCC's libraries, bugs #406163 and #417913
185
		# Automatically select active system GCC's libraries, bugs #406163 and #417913
183
		epatch "${FILESDIR}"/clang-3.5-gentoo-runtime-gcc-detection-v3.patch
186
		epatch "${FILESDIR}"/clang-3.5-gentoo-runtime-gcc-detection-v3.patch
Lines 202-207 src_prepare() { Link Here
202
		# https://llvm.org/bugs/show_bug.cgi?id=23793
205
		# https://llvm.org/bugs/show_bug.cgi?id=23793
203
		epatch "${FILESDIR}"/cmake/clang-0002-cmake-Make-CLANG_LIBDIR_SUFFIX-overridable.patch
206
		epatch "${FILESDIR}"/cmake/clang-0002-cmake-Make-CLANG_LIBDIR_SUFFIX-overridable.patch
204
207
208
		# Fix 'stdarg.h' file not found on Gentoo/FreeBSD, bug #578064
209
		# https://llvm.org/bugs/show_bug.cgi?id=26651
210
		epatch "${FILESDIR}"/llvm-3.8-compiler-rt-fbsd.patch
211
205
		pushd projects/compiler-rt >/dev/null || die
212
		pushd projects/compiler-rt >/dev/null || die
206
213
207
		# Fix WX sections, bug #421527
214
		# Fix WX sections, bug #421527
Lines 249-255 multilib_src_configure() { Link Here
249
	local mycmakeargs=(
256
	local mycmakeargs=(
250
		-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
257
		-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
251
258
252
		-DLLVM_LINK_LLVM_DYLIB=ON
253
		-DLLVM_ENABLE_TIMESTAMPS=OFF
259
		-DLLVM_ENABLE_TIMESTAMPS=OFF
254
		-DLLVM_TARGETS_TO_BUILD="${targets}"
260
		-DLLVM_TARGETS_TO_BUILD="${targets}"
255
		-DLLVM_BUILD_TESTS=$(usex test)
261
		-DLLVM_BUILD_TESTS=$(usex test)
Lines 270-275 multilib_src_configure() { Link Here
270
		-DHAVE_HISTEDIT_H=$(usex libedit)
276
		-DHAVE_HISTEDIT_H=$(usex libedit)
271
	)
277
	)
272
278
279
	# Fixed fails to link on Gentoo/FreeBSD, bug #578064
280
	if use kernel_FreeBSD; then
281
		mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
282
	else
283
		mycmakeargs+=( -DLLVM_LINK_LLVM_DYLIB=ON )
284
	fi
285
273
	if use clang; then
286
	if use clang; then
274
		mycmakeargs+=(
287
		mycmakeargs+=(
275
			-DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml)
288
			-DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml)

Return to bug 578064