mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
sys-firmware/seabios: force compiler to gcc
known incompatiable to clang are: * error: unknown argument: '-mpreferred-stack-boundary=2' * error: invalid input size for constraint 'Q' (inline asm) so force gcc is obviously an easy option until upstream support clang Closes: https://bugs.gentoo.org/887115 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -28,6 +28,7 @@ SLOT="0"
|
||||
IUSE="debug +seavgabios"
|
||||
|
||||
BDEPEND="
|
||||
sys-devel/gcc:*
|
||||
>=sys-power/iasl-20060912
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="!sys-firmware/seabios-bin"
|
||||
@@ -71,6 +72,15 @@ src_prepare() {
|
||||
|
||||
# Ensure precompiled iasl files are never used
|
||||
find "${WORKDIR}" -name '*.hex' -delete || die
|
||||
|
||||
# Force gcc because build failed with clang, #887115
|
||||
if ! tc-is-gcc ; then
|
||||
ewarn "seabios can be built with gcc only."
|
||||
ewarn "Ignoring CC=$(tc-getCC) and forcing ${CHOST}-gcc"
|
||||
export CC=${CHOST}-gcc
|
||||
export CXX=${CHOST}-g++
|
||||
tc-is-gcc || die "tc-is-gcc failed in spite of CC=${CC}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
Reference in New Issue
Block a user