SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Large SDL DLL size

Open slouken opened this issue 1 year ago • 2 comments

The 2.30.10 mingw release includes debug symbols, so the DLL is huge (12865 KB vs 2231 KB in 2.30.9). Can we strip it before archiving for release?

slouken avatar Dec 09 '24 15:12 slouken

I forgot to add -O2 -g0 when I switched SDL2's mingw build from CMake to autotools.

madebr avatar Dec 09 '24 15:12 madebr

I can drop in the win32 DLLs and re-upload the archives. Can you fix it for the next release?

slouken avatar Dec 09 '24 16:12 slouken

SDL2 (SDL and satellite libraries) mingw binaries, built by autotools, are now built with CFLAGS=-O2 and LDFLAGS=-Wl,-s.

SDL3 does not have this issue, since we use RelWithDebInfo already. I'm not 100% sure why stripping the output binary is not needed there to reduce the file size.

madebr avatar Dec 28 '24 02:12 madebr