summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord <d@openbsd.org>2000-01-06 16:59:18 +0000
committerd <d@openbsd.org>2000-01-06 16:59:18 +0000
commite41627d9c5fed4c02ad557bf6c52c5f0e2c57d70 (patch)
tree02f600f08c6c58ae88c2dea0b6f0923b40d91e31
parentfor now, disable weak aliases for all archs except i386 (diff)
downloadwireguard-openbsd-e41627d9c5fed4c02ad557bf6c52c5f0e2c57d70.tar.xz
wireguard-openbsd-e41627d9c5fed4c02ad557bf6c52c5f0e2c57d70.zip
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.