native build works worse than normal?

This commit is contained in:
2026-01-03 11:30:55 +01:00
parent ebfb628ab3
commit 19a5483acb
2 changed files with 23 additions and 45 deletions

View File

@@ -2,20 +2,11 @@ liblua:
gcc -c lua/*.c
ar rcs liblua *.o
rm *.o
liblua-native:
gcc -c lua/*.c -march=native
ar rcs liblua.native *.o
rm *.o
build: liblua
gcc -O2 -shared -static -o luahost-x86.dll plugin.c liblua -lgdi32 -luser32 -lshell32 \
gcc -O2 -shared -static -o luahost.dll plugin.c liblua -lgdi32 -luser32 -lshell32 \
-Wl,--add-stdcall-alias \
-ffunction-sections -fdata-sections
build-native: liblua
gcc -O2 -shared -static -o luahost.dll plugin.c liblua.native -lgdi32 -luser32 -lshell32 -march=native \
-Wl,--add-stdcall-alias \
-ffunction-sections -fdata-sections
install: build-native
install: build
cp luahost.dll "/c/Program Files (x86)/RDS Spy/plugins"