Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.30.10 mingw static library dramatic size increase #12042

Open
nichtsgames opened this issue Jan 21, 2025 · 1 comment
Open

Release 2.30.10 mingw static library dramatic size increase #12042

nichtsgames opened this issue Jan 21, 2025 · 1 comment

Comments

@nichtsgames
Copy link

In the 2.30.9 release the file SDL2-devel-x.xx.x-mingw.zip\SDL2-x.xx.x\x86_64-w64-mingw32\lib\libSDL2.a had a size of 3.5 MB.
In the 2.30.10 and 2.30.11 releases the file has a size of 15 MB.
What's the cause of this increase?

@madebr
Copy link
Contributor

madebr commented Jan 21, 2025

I don't know how it was built before, but the build logs can be found here.
The static CFLAGS are:

-O2  -DUSING_GENERATED_CONFIG_H -Iinclude -I/tmp/tardir/SDL2-2.30.11/include -idirafter /tmp/tardir/SDL2-2.30.11/src/video/khronos  -DSDL_BUILD_MAJOR_VERSION=2 -DSDL_BUILD_MINOR_VERSION=30 -DSDL_BUILD_MICRO_VERSION=11 -mmmx -msse -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -gdwarf-4 -Wdeclaration-after-statement -Werror=declaration-after-statement -MMD -M

The presence of -gdwarf-4 might explain the size, but it's added automatically by the configure script (configure command:

['configure', '--prefix=/tmp/tardir/SDL2-2.30.11/build-mingw/install-i686-w64-mingw32', '--includedir=${prefix}/include', '--libdir=${prefix}/lib', '--bindir=${prefix}/bin', '--exec-prefix=${prefix}/bin', '--host=i686-w64-mingw32', '--build=x86_64-none-linux-gnu', 'CFLAGS=-O2', 'CXXFLAGS=-O2', 'LDFLAGS=-Wl,-s']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants