update builder-linux

This commit is contained in:
bol-van
2026-02-28 19:14:45 +03:00
parent 410ba5ae6e
commit 3e52d53df0
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ build_luajit()
(
cd luajit2-*
make clean
make BUILDMODE=static CFLAGS="-O2" XCFLAGS="-DLUAJIT_DISABLE_FFI $CFLAGS_PIC" HOST_CC="$HOST_CC" CROSS= CC="$CC" TARGET_AR="$AR rcus" TARGET_STRIP=$STRIP TARGET_CFLAGS="$OPTIMIZE $MINSIZE $CFLAGS" TARGET_LDFLAGS="$LDMINSIZE $LDFLAGS"
make BUILDMODE=static CFLAGS="-O2" XCFLAGS="-DLUAJIT_DISABLE_FFI $CFLAGS_PIC" HOST_CC="$HOST_CC" CROSS= CC="$CC" TARGET_AR="$AR rcus" TARGET_STRIP=$STRIP TARGET_CFLAGS="$OPTIMIZE $MINSIZE $CFLAGS" TARGET_LDFLAGS="$CPU $LDMINSIZE $LDFLAGS"
make install PREFIX= DESTDIR="$STAGING_DIR"
)
}
+3 -1
View File
@@ -94,13 +94,15 @@ buildenv()
OLDPATH="$PATH"
export PATH="$PATH:$TOOLCHAINS/$TARGET/bin"
CPU=
CFLAGS_PIC=
LDFLAGS_PIE=-static
# not all archs support -static-pie. if does not support - it produces dynamic executable
# "-static -static-pie" causes segfaults
case $1 in
arm-*)
CFLAGS="-march=armv7-a -mthumb $CFLAGS"
CPU="-mcpu=cortex-a7 -mthumb -msoft-float $CFLAGS"
CFLAGS="$CPU $CFLAGS"
;;
mips*)
;;