Fixed bug 1392 - Debian patch: do not propagate -lpthread
authorSam Lantinga <slouken@libsdl.org>
Sun, 20 Oct 2013 10:19:51 -0700
changeset 7841b5d893a07471
parent 7840 7e9cd472a889
child 7842 a37d23ee1812
Fixed bug 1392 - Debian patch: do not propagate -lpthread

manuel.montezelo

Since the bug report[1] in 2006 Debian is shipping the patch attached.

[1] http://bugs.debian.org/375822

Maybe nowadays you don't propagate that library for linking, so maybe the patch should be dropped, but at the moment I do not have an easy/quick way to check it.

So I am submitting this report in the case that you consider it useful (even if maybe the patch itself has to be reworked), or otherwise learn if the patch is unneeded or even harmful.
sdl2-config.in
sdl2.pc.in
     1.1 --- a/sdl2-config.in	Sun Oct 20 10:10:14 2013 -0700
     1.2 +++ b/sdl2-config.in	Sun Oct 20 10:19:51 2013 -0700
     1.3 @@ -45,7 +45,7 @@
     1.4        echo -I@includedir@/SDL2 @SDL_CFLAGS@
     1.5        ;;
     1.6  @ENABLE_SHARED_TRUE@    --libs)
     1.7 -@ENABLE_SHARED_TRUE@      echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
     1.8 +@ENABLE_SHARED_TRUE@      echo -L@libdir@ @SDL_RLD_FLAGS@ -lSDL2
     1.9  @ENABLE_SHARED_TRUE@      ;;
    1.10  @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@    --static-libs)
    1.11  @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@    --libs|--static-libs)
     2.1 --- a/sdl2.pc.in	Sun Oct 20 10:10:14 2013 -0700
     2.2 +++ b/sdl2.pc.in	Sun Oct 20 10:19:51 2013 -0700
     2.3 @@ -10,6 +10,6 @@
     2.4  Version: @SDL_VERSION@
     2.5  Requires:
     2.6  Conflicts:
     2.7 -Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@
     2.8 +Libs: -L${libdir} @SDL_RLD_FLAGS@ -lSDL2
     2.9  Libs.private: @SDL_STATIC_LIBS@
    2.10  Cflags: -I${includedir}/SDL2 @SDL_CFLAGS@