- [NEW] Modificada linea de compilació per a compilar estàticament les llibreries (excepte SDL3.dll i libwinpthread-1.dll)
This commit is contained in:
2
Makefile
2
Makefile
@@ -3,7 +3,7 @@ source = source/*.cpp
|
||||
|
||||
windows:
|
||||
@echo off
|
||||
g++ $(source) bin/icon.res -lmingw32 -lSDL3 -mwindows -o "$(executable).exe"
|
||||
g++ $(source) bin/icon.res -lmingw32 -lSDL3 -mwindows -ffunction-sections -fdata-sections -static-libstdc++ -static-libgcc -lpthread -o "$(executable).exe"
|
||||
strip -s -R .comment -R .gnu.version --strip-unneeded "$(executable).exe"
|
||||
|
||||
windows_debug:
|
||||
|
||||
@@ -17,7 +17,7 @@ respak2 -p || exit /b 1
|
||||
echo Creando paquetes...
|
||||
|
||||
REM Crear ZIP release con exe + data.jf2
|
||||
tar -a -c -f mini_%PARAM%_windows_release.zip thepool.exe data.jf2 bin\SDL3.dll || exit /b 1
|
||||
tar -a -c -f mini_%PARAM%_windows_release.zip thepool.exe data.jf2 bin\*.dll || exit /b 1
|
||||
|
||||
echo Paquetes generados:
|
||||
echo thepool_%PARAM%_win32-x64.zip
|
||||
|
||||
Reference in New Issue
Block a user