summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-01-06 16:20:08 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-01-06 16:20:08 +0000
commit9ca3abe14ba03f278030bfe07cd0be76eee54d1d (patch)
tree6f2845866b4d3c911b97e5abc8cb40e2a5582f3c
parentd8fa06561dd28f7b0c1abc4f11eb8e771e7d309b (diff)
abstract -pthread switch into PTHREAD var
-rw-r--r--lib/libc_r/TEST/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc_r/TEST/Makefile b/lib/libc_r/TEST/Makefile
index 711ba08d123..cb66dd021a4 100644
--- a/lib/libc_r/TEST/Makefile
+++ b/lib/libc_r/TEST/Makefile
@@ -10,12 +10,14 @@
LIBC_R?= /usr/lib/libc_r.a
+PTHREAD= -pthread
+
CFLAGS += -Wall # -Werror
DEBUG = -ggdb
CFLAGS += -DSRCDIR='"${.CURDIR}"'
-LDLIBS += -lpthread -lm ${LDSTATIC}
+LDLIBS += ${PTHREAD} -lm ${LDSTATIC}
DPADD += ${LIBC_R}
-MKDEP = -p -lpthread
+MKDEP = -p ${PTHREAD}
# This list used to include test_select, but that test doesn't terminate.
TESTS = test_create test_pthread_join test_switch test_sleep test_readdir \