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

Collapse All | Expand All

(-)a/eclass/freebsd.eclass (+11 lines)
Lines 195-200 freebsd_src_unpack() { Link Here
195
		export INSTALL_LINK="ln -f"
195
		export INSTALL_LINK="ln -f"
196
		export INSTALL_SYMLINK="ln -fs"
196
		export INSTALL_SYMLINK="ln -fs"
197
	fi
197
	fi
198
199
	# When CC=clang, force use clang-cpp #478810, #595878
200
	if [[ $(tc-getCC) == *clang* ]] ; then
201
		if type -P clang-cpp > /dev/null ; then
202
			export CPP=clang-cpp
203
		else
204
			mkdir "${WORKDIR}"/workaround_clang-cpp || die "Could not create ${WORKDIR}/workaround_clang-cpp"
205
			ln -s "$(type -P clang)" "${WORKDIR}"/workaround_clang-cpp/clang-cpp || die "Could not create clang-cpp symlink."
206
			export CPP="${WORKDIR}/workaround_clang-cpp/clang-cpp"
207
		fi
208
	fi
198
}
209
}
199
210
200
freebsd_src_compile() {
211
freebsd_src_compile() {

Return to bug 595878