summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
authord <d@openbsd.org>2000-01-06 16:20:07 +0000
committerd <d@openbsd.org>2000-01-06 16:20:07 +0000
commit7be094fc381685e8c4448d756760cf3656f0a323 (patch)
tree210ff93906e20ab1a02750394694a7a5e45b03ab /lib/libc_r
parenthappy with non-weak testing. bump major versions just in case. (diff)
downloadwireguard-openbsd-7be094fc381685e8c4448d756760cf3656f0a323.tar.xz
wireguard-openbsd-7be094fc381685e8c4448d756760cf3656f0a323.zip
abstract -pthread switch into PTHREAD var
Diffstat (limited to 'lib/libc_r')
-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 \