summaryrefslogtreecommitdiff
path: root/mk/dlopen.builtin.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-11-26 08:15:25 +0000
committerjlam <jlam@pkgsrc.org>2004-11-26 08:15:25 +0000
commitb47bc866c03bce0c0b620651294ca41350e92f30 (patch)
treef7b3dda102e9b6731e6f921e0f5bf73045a7fbfa /mk/dlopen.builtin.mk
parent399f4ba496ba3855c2d065c322f437812d31b719 (diff)
downloadpkgsrc-b47bc866c03bce0c0b620651294ca41350e92f30.tar.gz
Move all dlopen-handling code into dlopen.{builtin,buildlink3}.mk.
Diffstat (limited to 'mk/dlopen.builtin.mk')
-rw-r--r--mk/dlopen.builtin.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/dlopen.builtin.mk b/mk/dlopen.builtin.mk
index 09600d6b6d2..9b9478c45d3 100644
--- a/mk/dlopen.builtin.mk
+++ b/mk/dlopen.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: dlopen.builtin.mk,v 1.1 2004/11/26 07:05:19 jlam Exp $
+# $NetBSD: dlopen.builtin.mk,v 1.2 2004/11/26 08:15:25 jlam Exp $
.for _lib_ in dl
. if !defined(_BLNK_LIB_FOUND.${_lib_})
@@ -62,14 +62,16 @@ _DLOPEN_REQUIRE_PTHREADS= yes
# included or not. Its default value depends on whether native
# pthreads exist.
#
-# Including pthread.buildlink3.mk is deferred until bsd.pkg.mk.
-#
. if defined(DLOPEN_REQUIRE_PTHREADS)
_DLOPEN_REQUIRE_PTHREADS:= ${DLOPEN_REQUIRE_PTHREADS}
. else
DLOPEN_REQUIRE_PTHREADS= ${_DLOPEN_REQUIRE_PTHREADS}
. endif
. if !empty(_DLOPEN_REQUIRE_PTHREADS:M[yY][eE][sS])
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+. include "../../mk/pthread.buildlink3.mk"
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
+. include "../../mk/pthread.builtin.mk"
BUILDLINK_CFLAGS.dl+= ${PTHREAD_CFLAGS}
BUILDLINK_LDFLAGS.dl+= ${PTHREAD_LDFLAGS}
BUILDLINK_LIBS.dl+= ${PTHREAD_LIBS}