We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab324bb commit 019a1faCopy full SHA for 019a1fa
1 file changed
lua/build-mingw.sh
@@ -27,11 +27,11 @@ cd "$script_dir/build/$lua_version"
27
patch -p1 -i "$script_dir/build.patch"
28
make \
29
PLAT=mingw \
30
- CC="i686-w64-mingw32-gcc -std=gnu99" \
31
- AR="i686-w64-mingw32-ar rc" \
32
- RANLIB="i686-w64-mingw32-ranlib" \
+ CC="$compiler-gcc -std=gnu99" \
+ AR="$compiler-ar rc" \
+ 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"
35
36
-i686-w64-mingw32-strip --strip-unneeded src/lua.exe
+$compiler-strip --strip-unneeded src/lua.exe
37
cp src/lua.exe ../../lua-windows-$arch
0 commit comments