# HG changeset patch # User Sam Lantinga # Date 1199201039 0 # Node ID f7e5a35a1d0dda96747fdcfb91d52b85900d4235 # Parent 7c2589fb8d4df54c6faabd3faebd0c0e73f67879 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 diff -r 7c2589fb8d4d -r f7e5a35a1d0d configure.in --- a/configure.in Mon Dec 31 06:18:12 2007 +0000 +++ b/configure.in Tue Jan 01 15:23:59 2008 +0000 @@ -2749,7 +2749,7 @@ SDL_STATIC_LIBS="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS" ;; *) - SDL_STATIC_LIBS="$SDL_LIBS" + SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS" ;; esac diff -r 7c2589fb8d4d -r f7e5a35a1d0d sdl.pc.in --- a/sdl.pc.in Mon Dec 31 06:18:12 2007 +0000 +++ b/sdl.pc.in Tue Jan 01 15:23:59 2008 +0000 @@ -11,4 +11,5 @@ Requires: Conflicts: Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@ +Libs.private: @SDL_STATIC_LIBS@ Cflags: -I${includedir}/SDL @SDL_CFLAGS@