]> git.proxmox.com Git - mirror_qemu.git/commitdiff
configure: Fix build with XFree
authorRichard Henderson <rth@twiddle.net>
Tue, 5 Feb 2013 00:21:07 +0000 (16:21 -0800)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 6 Feb 2013 14:29:21 +0000 (08:29 -0600)
The build is broken on ppc64-linux, possibly only with new binutils:

ld: hw/lm32/../milkymist-tmu2.o: undefined reference to symbol 'XFree'
ld: note: 'XFree' is defined in DSO /lib64/libX11.so.6 so try \
  adding it to the linker command line

So let's follow the linker's advice.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure

index 0657b1a1b581712c4143251ad81f2c2e11686515..8789324a9b36d943583e0d053d2e1bddb834550f 100755 (executable)
--- a/configure
+++ b/configure
@@ -2388,7 +2388,7 @@ fi
 ##########################################
 # opengl probe, used by milkymist-tmu2
 if test "$opengl" != "no" ; then
-  opengl_libs="-lGL"
+  opengl_libs="-lGL -lX11"
   cat > $TMPC << EOF
 #include <X11/Xlib.h>
 #include <GL/gl.h>