All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: Fix build with XFree
@ 2013-02-01 22:32 Richard Henderson
  2013-02-03 17:17 ` [Qemu-devel] [PATCH for-1.4] " Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 2013-02-01 22:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: blauwirbel, afaerber

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>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 0657b1a..8789324 100755
--- 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>
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH for-1.4] configure: Fix build with XFree
  2013-02-01 22:32 [Qemu-devel] [PATCH] configure: Fix build with XFree Richard Henderson
@ 2013-02-03 17:17 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2013-02-03 17:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: blauwirbel, afaerber

I should have put for-1.4 in the subject...

r~


On 2013-02-01 14:32, Richard Henderson wrote:
> 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>
> ---
>   configure | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index 0657b1a..8789324 100755
> --- 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>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-03 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-01 22:32 [Qemu-devel] [PATCH] configure: Fix build with XFree Richard Henderson
2013-02-03 17:17 ` [Qemu-devel] [PATCH for-1.4] " Richard Henderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.