Fixed bug #531 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Tue, 01 Jan 2008 15:23:59 +0000
branchSDL-1.2
changeset 4132f7e5a35a1d0d
parent 4131 7c2589fb8d4d
child 4133 2130d625816f
Fixed bug #531

The static libs should include all the other libraries the dynamic SDL library
links with.

sdl.pc should include these so "pkg-config sdl --libs --static" works
configure.in
sdl.pc.in
     1.1 --- a/configure.in	Mon Dec 31 06:18:12 2007 +0000
     1.2 +++ b/configure.in	Tue Jan 01 15:23:59 2008 +0000
     1.3 @@ -2749,7 +2749,7 @@
     1.4      SDL_STATIC_LIBS="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS"
     1.5      ;;
     1.6    *)
     1.7 -    SDL_STATIC_LIBS="$SDL_LIBS"
     1.8 +    SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
     1.9      ;;
    1.10  esac
    1.11  
     2.1 --- a/sdl.pc.in	Mon Dec 31 06:18:12 2007 +0000
     2.2 +++ b/sdl.pc.in	Tue Jan 01 15:23:59 2008 +0000
     2.3 @@ -11,4 +11,5 @@
     2.4  Requires:
     2.5  Conflicts:
     2.6  Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@
     2.7 +Libs.private: @SDL_STATIC_LIBS@
     2.8  Cflags: -I${includedir}/SDL @SDL_CFLAGS@