From a523991913b0151b86178ffb5ba4a57ab91019ae Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 1 Jan 2008 15:23:59 +0000 Subject: [PATCH] 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 | 2 +- sdl.pc.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 522855167..1a537767c 100644 --- a/configure.in +++ b/configure.in @@ -2749,7 +2749,7 @@ case "$ARCH" in 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 --git a/sdl.pc.in b/sdl.pc.in index 51fd993bf..2d43ac925 100644 --- a/sdl.pc.in +++ b/sdl.pc.in @@ -11,4 +11,5 @@ Version: @SDL_VERSION@ Requires: Conflicts: Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@ +Libs.private: @SDL_STATIC_LIBS@ Cflags: -I${includedir}/SDL @SDL_CFLAGS@