Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-22 09:15:49 +00:00

builder-linux armv7 thumb

This commit is contained in:
bol-van
2026-02-28 18:20:46 +03:00
parent 827b1cf065
commit 1aaf73858c
4 changed files with 15 additions and 6 deletions

View File

@@ -98,12 +98,17 @@ buildenv()
LDFLAGS_PIE=-static
# not all archs support -static-pie. if does not support - it produces dynamic executable
# "-static -static-pie" causes segfaults
[ "$PIE" = 1 ] && case $1 in
arm-*|mips*)
case $1 in
arm-*)
CFLAGS="-march=armv7-a -mthumb $CFLAGS"
;;
mips*)
;;
*)
CFLAGS_PIC=-fPIC
LDFLAGS_PIE="-static-pie"
[ "$PIE" = 1 ] && {
CFLAGS_PIC=-fPIC
LDFLAGS_PIE="-static-pie"
}
esac
}