Skip to contentSkip to conversation

configure: Fix build with XFree

PATCH In review Richard Henderson 1 participant 2 messages Feb 1, 2013 – Feb 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Fix build with XFree

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.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 0657b1a..8789324 100755
@@ -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>
Signature · 1 line
1.7.11.7
#1 lore raw

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

r~

Quoted 27 lines · Richard Henderson

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.

---
  configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 0657b1a..8789324 100755
@@ -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>