mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
Disable ThinLTO on static builds
This commit is contained in:
parent
65ccb88ecb
commit
b386512ec2
12
src/build.sh
12
src/build.sh
@ -91,6 +91,18 @@ case "$EXTRA_FLAGS" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# OpenWrt static builds are bad with Clang 18+ and ThinLTO.
|
||||||
|
# Segfaults in fstack-protector on ARM.
|
||||||
|
# See https://github.com/llvm/llvm-project/issues/64999
|
||||||
|
case "$EXTRA_FLAGS" in
|
||||||
|
*build_static=true*)
|
||||||
|
if [ "$target_cpu" = "arm" ]; then
|
||||||
|
flags="$flags"'
|
||||||
|
use_thin_lto=false'
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
rm -rf "./$out"
|
rm -rf "./$out"
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user