diff mbox

[Bug,984516] Re: should use sdl-config for static build not pkg-config

Message ID 20120418022245.7185.36402.malone@gac.canonical.com
State New
Headers show

Commit Message

Kenneth Salerno April 18, 2012, 2:22 a.m. UTC
Sorry, I stripped out the "2>/dev/null" when I was debugging and forgot
to add it back in:
diff mbox

Patch

diff --git a/configure b/configure
index 2d62d12..3de4c9b 100755
--- a/configure
+++ b/configure
@@ -1548,7 +1548,7 @@  int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
 EOF
   sdl_cflags=`$sdlconfig --cflags 2> /dev/null`
   if test "$static" = "yes" ; then
- sdl_libs=`$sdlconfig --static-libs 2>/dev/null`
+ sdl_libs=`${SDL_CONFIG-${cross_prefix}sdl-config} --static-libs 2>/dev/null`
   else
     sdl_libs=`$sdlconfig --libs 2> /dev/null`
   fi