summaryrefslogtreecommitdiff
path: root/mk/pthread.builtin.mk
diff options
context:
space:
mode:
authorobache <obache>2013-04-28 13:40:17 +0000
committerobache <obache>2013-04-28 13:40:17 +0000
commit9d12bedaf10382ff564cf0e6f9f58b871bfb2d39 (patch)
tree238af2b05c12e053ec2ccf2a8d77a5977d3c3fc9 /mk/pthread.builtin.mk
parentf4325d5e40375320c0c63a0d84f9954d24a5a058 (diff)
downloadpkgsrc-9d12bedaf10382ff564cf0e6f9f58b871bfb2d39.tar.gz
tell pthread of Haiku.
Diffstat (limited to 'mk/pthread.builtin.mk')
-rw-r--r--mk/pthread.builtin.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/mk/pthread.builtin.mk b/mk/pthread.builtin.mk
index 13390157476..733edc9f886 100644
--- a/mk/pthread.builtin.mk
+++ b/mk/pthread.builtin.mk
@@ -1,10 +1,11 @@
-# $NetBSD: pthread.builtin.mk,v 1.12 2012/05/04 07:24:50 obache Exp $
+# $NetBSD: pthread.builtin.mk,v 1.13 2013/04/28 13:40:17 obache Exp $
BUILTIN_PKG:= pthread
BUILTIN_FIND_LIBS:= pthread c_r rt
BUILTIN_FIND_FILES_VAR= H_PTHREAD
-BUILTIN_FIND_FILES.H_PTHREAD= /usr/include/pthread.h
+BUILTIN_FIND_FILES.H_PTHREAD= /usr/include/pthread.h \
+ /boot/develop/headers/posix/pthread.h
.include "../../mk/buildlink3/bsd.builtin.mk"
@@ -46,6 +47,13 @@ CHECK_BUILTIN.pthread?= no
. if !empty(USE_BUILTIN.pthread:M[yY][eE][sS])
BUILDLINK_PREFIX.pthread= /usr
+. if empty(H_PTHREAD:M__nonexistent__)
+. if!empty(H_PTHREAD:M/usr/*)
+BUILDLINK_PREFIX.pthread= /usr
+. else
+BUILDLINK_PREFIX.pthread= # empty
+. endif
+. endif
BUILDLINK_CFLAGS.pthread= # empty
BUILDLINK_LDFLAGS.pthread= # empty