Sdl compile size and static linkage

After I compile SDL with mingw and strip it (“strip.exe sdl.dll”) the size
of the resulting dll is 289KB. I’ve seen other prebuilt dll’s on the order
of 87KB, am I doing something wrong?

Also, how would I get gcc to statically link to libsdl.a instead of sdl.dll?

I just finishd a remake of Spacewar and am trying to figure out how to
package it up as efficiently as possible. :slight_smile:

Cheers,
Dan.

added to the gcc command line:

-Wl,-Bstatic -lsdl

I believe…On Mon, 2002-11-11 at 16:20, Daniel Goertzen wrote:

After I compile SDL with mingw and strip it (“strip.exe sdl.dll”) the size
of the resulting dll is 289KB. I’ve seen other prebuilt dll’s on the order
of 87KB, am I doing something wrong?

Also, how would I get gcc to statically link to libsdl.a instead of sdl.dll?