Skip to content

Commit ec77049

Browse files
committed
lua build scripts updated
1 parent a1df678 commit ec77049

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

hatch_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def initialize(self, version, build_data):
100100
lua_build_dir,
101101
"make",
102102
"PLAT=linux",
103-
"MYCFLAGS=-Os -fPIE -flto -fuse-linker-plugin -ffat-lto-objects",
104-
"MYLDFLAGS=-Os -pie -static -flto -fuse-linker-plugin -ffat-lto-objects -Wl,-z,relro,-z,now",
103+
"MYCFLAGS=-Os -fPIE -flto=auto -fuse-linker-plugin -ffat-lto-objects",
104+
"MYLDFLAGS=-Os -pie -static -flto=auto -fuse-linker-plugin -ffat-lto-objects -Wl,-z,relro,-z,now",
105105
)
106106
# Strip binary
107107
print("Stripping Lua binary...")

python_lua_helper/lua/build-mingw.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ make \
3030
CC="$compiler-gcc -std=gnu99" \
3131
AR="$compiler-ar rc" \
3232
RANLIB="$compiler-ranlib" \
33-
MYCFLAGS="-Os -fPIE -flto -fuse-linker-plugin -ffat-lto-objects" \
34-
MYLDFLAGS="-Os -pie -static -flto -fuse-linker-plugin -ffat-lto-objects"
33+
MYCFLAGS="-Os -fPIE -flto=auto -fuse-linker-plugin -ffat-lto-objects" \
34+
MYLDFLAGS="-Os -pie -static -flto=auto -fuse-linker-plugin -ffat-lto-objects"
3535

3636
$compiler-strip --strip-unneeded src/lua.exe
3737
cp -v src/lua.exe "$script_dir/lua-windows-$arch"

0 commit comments

Comments
 (0)