summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'regress/lib/libpthread/Makefile.inc')
-rw-r--r--regress/lib/libpthread/Makefile.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/regress/lib/libpthread/Makefile.inc b/regress/lib/libpthread/Makefile.inc
index 318c7040af9..c3c8a0887f3 100644
--- a/regress/lib/libpthread/Makefile.inc
+++ b/regress/lib/libpthread/Makefile.inc
@@ -1,19 +1,22 @@
-# $OpenBSD: Makefile.inc,v 1.4 2002/04/20 00:15:36 art Exp $
+# $OpenBSD: Makefile.inc,v 1.5 2002/06/17 04:48:24 marc Exp $
# Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu
LIBC_R?= /usr/lib/libc_r.a
LIBPTHREAD?= /usr/lib/libpthread.a
+USELIBPTHREAD?= no
-.if 1 # ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc"
+.if ${USELIBPTHREAD:L} == yes
+# this tests using libpthread/libc
LDADD+= -lpthread
DPADD+= ${LIBPTHREAD}
.else
+# This tests using libc_r
LDADD+= -pthread
DPADD+= ${LIBC_R}
.endif
CFLAGS+= -Wall # -Werror
-DEBUG= -ggdb
+#DEBUG= -ggdb
CFLAGS+= -DSRCDIR='"${.CURDIR}"'
CFLAGS+= -I${.CURDIR}/../include