mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
Toolchain: Fix QEMU build with latest gcc by disabling -fcf-protection
I noticed after upgrading my machine that the QEMU is no longer building due to GCC enabling `-fcf-protection` by default, even for targets that don't support it. The included patch came from the QEMU development list, but hasn't be included in any patch releases at the time of writing. https://lore.kernel.org/all/20220208211937.79580-1-vineetg@rivosinc.com/ Until QEMU patches, lets fix it on our end by patching before we build.
This commit is contained in:
parent
b760a1a4ba
commit
d386d3946a
2 changed files with 43 additions and 0 deletions
|
@ -40,6 +40,12 @@ pushd "$DIR/Tarballs"
|
|||
else
|
||||
echo "Skipped extracting qemu"
|
||||
fi
|
||||
|
||||
pushd "$QEMU_VERSION"
|
||||
patch -p1 < "$DIR/Patches/qemu-cf-protection-none.patch" > /dev/null
|
||||
md5sum "$DIR/Patches/qemu-cf-protection-none.patch" > .patch.applied
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
mkdir -p "$PREFIX"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue