qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 984516] Re: should use sdl-config for static build not


From: Kenneth Salerno
Subject: [Qemu-devel] [Bug 984516] Re: should use sdl-config for static build not pkg-config
Date: Wed, 18 Apr 2012 14:10:22 -0000

you are correct, can we switch the parameter from "--static-libs" to "--
libs --static" ?

diff --git a/configure b/configure
index 2d62d12..b0cedd2 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=`$sdlconfig --libs --static 2>/dev/null`
   else
     sdl_libs=`$sdlconfig --libs 2> /dev/null`
   fi

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/984516

Title:
  should use sdl-config for static build not pkg-config

Status in QEMU:
  New

Bug description:
  In the configure script when a user wants to compile a static QEMU and
  enable SDL support (i.e. ./configure --static --enable-sdl):

  pkg-config does not have an option "--static-libs". For correct
  results (to find the static archive libSDL.a) you need to use sdl-
  config --static-libs.

  
  This is how I get it to work for me anyway:

  
  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`
     else
       sdl_libs=`$sdlconfig --libs 2> /dev/null`
     fi

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/984516/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]