should use sdl-config for static build not pkg-config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Thomas Huth |
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_
if test "$static" = "yes" ; then
- sdl_libs=
+ sdl_libs=
else
sdl_
fi
Changed in qemu: | |
status: | Fix Committed → Fix Released |
Sorry, I stripped out the "2>/dev/null" when I was debugging and forgot to add it back in:
diff --git a/configure b/configure cflags= `$sdlconfig --cflags 2> /dev/null` `$sdlconfig --static-libs 2>/dev/null` `${SDL_ CONFIG- ${cross_ prefix} sdl-config} --static-libs 2>/dev/null` libs=`$ sdlconfig --libs 2> /dev/null`
index 2d62d12..3de4c9b 100755
--- a/configure
+++ b/configure
@@ -1548,7 +1548,7 @@ int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
EOF
sdl_
if test "$static" = "yes" ; then
- sdl_libs=
+ sdl_libs=
else
sdl_
fi