summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-04-28 13:40:17 +0000
committerobache <obache@pkgsrc.org>2013-04-28 13:40:17 +0000
commit34b65a30a4fbc543d52345feb7c67b0ef9253ebc (patch)
tree238af2b05c12e053ec2ccf2a8d77a5977d3c3fc9 /mk
parent80e3ee2eb70555c57109449fe3496fcdeac5c0eb (diff)
downloadpkgsrc-34b65a30a4fbc543d52345feb7c67b0ef9253ebc.tar.gz
tell pthread of Haiku.
Diffstat (limited to '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