Mesa (master): progs/egl: Link xeglthreads to libpthread.

Chia-I Wu olv at kemper.freedesktop.org
Tue Mar 23 17:47:38 PDT 2010


Module: Mesa
Branch: master
Commit: 99386921e778271c9b3edf90123ab6319e23fc95
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=99386921e778271c9b3edf90123ab6319e23fc95

Author: Chia-I Wu <olv at lunarg.com>
Date:   Wed Mar 24 08:34:39 2010 +0800

progs/egl: Link xeglthreads to libpthread.

This should hopefully fix a build failure reported by Chris Ball when
binutils-gold is used.

---

 progs/egl/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/egl/Makefile b/progs/egl/Makefile
index 8dfcb4e..890240f 100644
--- a/progs/egl/Makefile
+++ b/progs/egl/Makefile
@@ -60,7 +60,7 @@ xeglgears: xeglgears.o $(HEADERS) $(LIB_DEP)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) -lm $(X11_LIBS)
 
 xeglthreads: xeglthreads.o $(HEADERS) $(LIB_DEP)
-	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) -lm $(X11_LIBS)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) -lpthread -lm $(X11_LIBS)
 
 xegl_tri: xegl_tri.o $(HEADERS) $(LIB_DEP)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) -lm $(X11_LIBS)



More information about the mesa-commit mailing list