Skip to content

Commit

Permalink
fix: Static build on non-amd64 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
nurupo committed Mar 29, 2024
1 parent 47eff55 commit 7b4380a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/build-minimal-static-toxic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ set -x
MAKEFLAGS=j$(nproc)
export MAKEFLAGS
# TODO(nurupo): Once GCC 14 comes out, switch to using the new -fhardened
CFLAGS="-ftrivial-auto-var-init=zero -fPIE -pie -Wl,-z,relro,-z,now -fstack-protector-strong -fstack-clash-protection -fcf-protection=full"
CFLAGS="-ftrivial-auto-var-init=zero -fPIE -pie -Wl,-z,relro,-z,now -fstack-protector-strong -fstack-clash-protection"
if [ "$(uname -m)" == "x86_64" ]
then
CFLAGS="$CFLAGS -fcf-protection=full"
fi
export CFLAGS

check_sha256()
Expand Down

0 comments on commit 7b4380a

Please sign in to comment.