[SDL] Static linking and dynamic OpenGL
stephena at users.sourceforge.net
Fri Jan 20 04:46:14 PST 2006
On January 20, 2006 06:33 am, Andreas Umbach wrote:
> > 3) The point of this whole exercise is to get around the
> > brokenness of Linux wrt creating an app that will work everywhere.
> > Notice that OSX and Win32 don't have a problem with that.
> I dynamically link libc, pthread, X11 and OpenGL, and statically link
> everything else. I've never had a problem with that. My magic LIBS
> line is:
> LIBS = -L/usr/X11R6/lib -L/usr/local/lib
> -Wl,-rpath,/usr/local/lib,-Bstatic -lSDL_sound -lSDL -lsmpeg -lmikmod
> -lvorbisfile -lvorbis -logg -lXxf86dga -lXxf86vm -lXv -lXinerama -lXi
> -lpng -lz -lstdc++ -Wl,-Bdynamic -lpthread -lGL -lX11 -lXext -ldl
Thanks for that, I'll try it out.
More information about the SDL