summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-01-06 16:59:19 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-01-06 16:59:19 +0000
commit207871f8fba2d43bd5e6a744e234b970d5932258 (patch)
tree413ac3a8369ca408a305afd544db796cec721554
parentb13d45523ed9e4b3e1f0807282632220261f0aea (diff)
for now, use -lpthread on i386. one day every arch will do this...
-rw-r--r--lib/libc_r/TEST/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc_r/TEST/Makefile b/lib/libc_r/TEST/Makefile
index cb66dd021a4..3b671a8289d 100644
--- a/lib/libc_r/TEST/Makefile
+++ b/lib/libc_r/TEST/Makefile
@@ -9,14 +9,20 @@
#
LIBC_R?= /usr/lib/libc_r.a
+LIBPTHREAD?= /usr/lib/libpthread.a
+.if ${MACHINE_ARCH} != "i386"
PTHREAD= -pthread
+DPADD += ${LIBC_R}
+.else
+PTHREAD= -lpthread
+DPADD += ${LIBPTHREAD}
+.endif
CFLAGS += -Wall # -Werror
DEBUG = -ggdb
CFLAGS += -DSRCDIR='"${.CURDIR}"'
LDLIBS += ${PTHREAD} -lm ${LDSTATIC}
-DPADD += ${LIBC_R}
MKDEP = -p ${PTHREAD}
# This list used to include test_select, but that test doesn't terminate.