[SDL] Statically Link the SDL library

Ryan C. Gordon icculus at clutteredmind.org
Tue Dec 23 15:45:01 PST 2003


> sdl-config --cflags : -I/usr/include/SDL -D_REENTRANT
> sdl-config --libs    : -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread

You're linking against the shared library...effectively, you've got the
same thing as before, except it's doing the dlopen() and dlsym() work
for you.

Make sure you aren't violating the LGPL license, then link against
/usr/lib/libSDL.a.

--ryan.







More information about the SDL mailing list