libsdl-org/SDL_ttf

Prebuilt MinGW development library files very large compared to MSVC

Closed this issue · 2 comments

When I downloaded the development library files for MinGW I noticed that the file sizes are pretty large:

x86_64-w64-mingw32\bin\SDL2_ttf.dll ~66 MB
x86_64-w64-mingw32\lib\libSDL2_ttf.a ~78 MB

Whereas for MSVC, they are significantly smaller:
SDL2_ttf-2.22.0\lib\x86\SDL2_ttf.dll ~800 KB
SDL2_ttf-2.22.0\lib\x86\SDL2_ttf.lib ~12 KB

As I understand it, the MSVC libs do not allow for static linking. However, when I build the MSVC libraries from source to have static linking, I still get:
SDL2_ttf-2.22.0\lib\x64\SDL2_ttf.lib ~127 KB
(And the static freetype.lib is only ~1.8 MB)

Why is there such a dramatic difference in file size for the MinGW library files? (this might not be an issue so apologies if not, I just figured someone here might know the answer).

The MinGW files contain debug symbols and the MSVC libs are stripped.

Thanks!