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

update builder-linux

This commit is contained in:
bol-van
2026-02-26 18:41:36 +03:00
parent 7584d5e38f
commit 60988755b7
4 changed files with 15 additions and 5 deletions

View File

@@ -9,6 +9,8 @@ MINSIZE="${MINSIZE:--flto=auto -ffunction-sections -fdata-sections}"
LDMINSIZE="${LDMINSIZE:--Wl,--gc-sections -flto=auto}"
#CFLAGS=""
LDFLAGS="-lgcc_eh $LDFLAGS"
# PIE makes ASLR working but adds 5% to size
PIE=${PIE:-0}
HOSTCC=${HOSTCC:-cc}
LUA_VER=${LUA_VER:-5.5}
LUA_RELEASE=${LUA_RELEASE:-5.5.0}
@@ -17,6 +19,13 @@ LUAJIT_RELEASE=${LUAJIT_RELEASE:-2.1-20250826}
LUAJIT_LUA_VER=${LUAJIT_LUA_VER:-5.1}
nproc=$(nproc)
CFLAGS_PIC=
LDFLAGS_PIE=-static
[ "$PIE" = 1 ] && {
CFLAGS_PIC=-fPIC
LDFLAGS_PIE=-static-pie
}
TARGETS="\
aarch64-unknown-linux-musl \
arm-unknown-linux-musleabi \