[SDL] statically linking to SDL
hayward at slothmud.org
hayward at slothmud.org
Thu Jan 27 14:27:17 PST 2000
If you want to statically link to SDL, you merely link with the ".a"
instead of the ".so". Your question in the subject would imply you are
not worried about statically linking the XFree86 components, which means
it's ok if you link to the X ".so" library.
--
Brian
>> I tried sticking "-static" before the output from 'sdl-config --libs',
>> but when I do that, I get a gazillion xlib errors (probably because my
>> box only has shared object files for X, right?)
>
>That's what I found too. My guess is there *might* be a way to download
>the source for XFree86 and make static libraries for the stuff that's only
>shared in the distributions. Of course, the reason it might be shared
>only is because it's *enormous*. (libXm.so is already 1.3M as a shared
>library on my system.)
More information about the SDL
mailing list