Fixes spurious dependency as reported in Debian bug #375822 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=375822 This patch also included in Mandriva. >There is a spurious dependency in the output of sdl-config --libs: > >-L/usr/lib -lSDL -lpthread > >-lpthread is _not_ needed in --libs (since the SDL _interface_ doesn't >need pthread functions) and just brings an unneeded dependency. It >should be used only for linking libSDL.so itself, and put in sdl-config >--static-libs (for static linking). Adapted for Gentoo by Peter Alfredsen --- SDL-1.2.11.orig/sdl-config.in 2007-03-05 17:30:51.000000000 +0100 +++ SDL-1.2.11/sdl-config.in 2007-03-05 17:54:05.000000000 +0100 @@ -47,11 +47,11 @@ @ENABLE_SHARED_TRUE@ if test x"${prefix}" != x"/usr" ; then @ENABLE_SHARED_TRUE@ libdirs="-L@libdir@" @ENABLE_SHARED_TRUE@ else @ENABLE_SHARED_TRUE@ libdirs="" @ENABLE_SHARED_TRUE@ fi -@ENABLE_SHARED_TRUE@ echo $libdirs @SDL_RLD_FLAGS@ @SDL_LIBS@ +@ENABLE_SHARED_TRUE@ echo $libdirs @SDL_RLD_FLAGS@ -lSDL @ENABLE_SHARED_TRUE@ ;; @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs) @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs) @ENABLE_STATIC_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_STATIC_LIBS@ @ENABLE_STATIC_TRUE@ ;; --- SDL-1.2.11.orig/sdl.pc.in 2006-06-20 07:49:00.000000000 +0200 +++ SDL-1.2.11/sdl.pc.in 2007-03-05 17:54:38.000000000 +0100 @@ -8,7 +8,7 @@ Name: sdl Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. Version: @SDL_VERSION@ Requires: Conflicts: -Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@ +Libs: -L${libdir} @SDL_RLD_FLAGS@ -lSDL Cflags: -I${includedir}/SDL @SDL_CFLAGS@