Skip to content

Commit 019a1fa

Browse files
committed
lua: build-mingw.sh updated, fixes
1 parent ab324bb commit 019a1fa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lua/build-mingw.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ cd "$script_dir/build/$lua_version"
2727
patch -p1 -i "$script_dir/build.patch"
2828
make \
2929
PLAT=mingw \
30-
CC="i686-w64-mingw32-gcc -std=gnu99" \
31-
AR="i686-w64-mingw32-ar rc" \
32-
RANLIB="i686-w64-mingw32-ranlib" \
30+
CC="$compiler-gcc -std=gnu99" \
31+
AR="$compiler-ar rc" \
32+
RANLIB="$compiler-ranlib" \
3333
MYCFLAGS="-Os -fPIE -flto -fuse-linker-plugin -ffat-lto-objects" \
3434
MYLDFLAGS="-Os -pie -static -flto -fuse-linker-plugin -ffat-lto-objects"
3535

36-
i686-w64-mingw32-strip --strip-unneeded src/lua.exe
36+
$compiler-strip --strip-unneeded src/lua.exe
3737
cp src/lua.exe ../../lua-windows-$arch

0 commit comments

Comments
 (0)