summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-06-22 10:29:54 -0700
committerEric Anholt <eric@anholt.net>2007-06-22 11:19:42 -0700
commit1a413b4d7765bbdc5e922659a4cc8aa17b1feb2d (patch)
tree0557137e83e00dcdecbeb1166510d0d3ae824e32
parent1d52b6aaf41b32aaf8d1cdf5a3cd5ff4ecba28f4 (diff)
Use -pthread instead of -lpthread on FreeBSD.
-rwxr-xr-xbin/mklib3
-rw-r--r--configs/freebsd-dri4
2 files changed, 5 insertions, 2 deletions
diff --git a/bin/mklib b/bin/mklib
index 21d48edd77..8ee8d8ce49 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -104,6 +104,9 @@ do
# this is a special case (see bugzilla 10876)
DEPS="$DEPS $1"
;;
+ '-pthread')
+ DEPS="$DEPS -pthread"
+ ;;
'-cplusplus')
CPLUSPLUS=1
;;
diff --git a/configs/freebsd-dri b/configs/freebsd-dri
index 1492e4a4d9..402883d1de 100644
--- a/configs/freebsd-dri
+++ b/configs/freebsd-dri
@@ -27,9 +27,9 @@ ASM_SOURCES =
# Library/program dependencies
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
LIBDRM_LIB = `pkg-config --libs libdrm`
-DRI_LIB_DEPS = -L/usr/local/lib -lm -lpthread -lexpat $(LIBDRM_LIB)
+DRI_LIB_DEPS = -L/usr/local/lib -lm -pthread -lexpat $(LIBDRM_LIB)
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
- -lm -lpthread $(LIBDRM_LIB)
+ -lm -pthread $(LIBDRM_LIB)
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lX11