diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6a1bcf..9bcaa17 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,7 +113,7 @@ jobs: wget -qO- https://www.lua.org/ftp/lua-${LUA_RELEASE}.tar.gz | tar -xz ( cd lua-${LUA_RELEASE} - make CC=$CC CFLAGS="-Os -flto=auto $CFLAGS" linux -j$(nproc) + make CC=$CC CFLAGS="-Os -flto=auto -ffunction-sections -fdata-sections -fvisibility=hidden $CFLAGS" linux -j$(nproc) make install INSTALL_TOP=$DEPS_DIR INSTALL_BIN=$DEPS_DIR/bin INSTALL_INC=$DEPS_DIR/include/lua${LUA_VER} INSTALL_LIB=$DEPS_DIR/lib ) LJIT=0 @@ -131,7 +131,7 @@ jobs: esac ( cd luajit2-* - make BUILDMODE=static XCFLAGS=-DLUAJIT_DISABLE_FFI HOST_CC="$HOSTCC" CROSS= CC="$CC" TARGET_AR="$AR rcus" TARGET_STRIP=$STRIP CFLAGS="-Os -s -flto=auto $CFLAGS" -j$(nproc) + make BUILDMODE=static XCFLAGS=-DLUAJIT_DISABLE_FFI HOST_CC="$HOSTCC" CROSS= CC="$CC" TARGET_AR="$AR rcus" TARGET_STRIP=$STRIP CFLAGS="-Os -s -flto=auto -ffunction-sections -fdata-sections -fvisibility=hidden $CFLAGS" -j$(nproc) make install PREFIX= DESTDIR=$DEPS_DIR ) LJIT=1 diff --git a/docs/changes.txt b/docs/changes.txt index b667f0d..9aefd51 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -237,3 +237,4 @@ zapret-auto: "instances" argument in condition orchestrator zapret-auto: cond_tcp_has_ts, cond_lua iff functions zapret-lib: replay_execution_plan and plan_clear max parameter init.d: use bitmap:port ipset for standard dports +github: reduce executables files size