From 70a83b0157f0702b6c27253728e0ec3928be1faf Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 25 Jan 2003 08:39:54 +0000 Subject: Create a fake libpthread.la that corresponds to /usr/lib/libpthread.*. This should allow building packages that use libtool and use native pthreads even if pth is installed. --- mk/pthread.buildlink2.mk | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/pthread.buildlink2.mk b/mk/pthread.buildlink2.mk index 93489920692..508101a15bc 100644 --- a/mk/pthread.buildlink2.mk +++ b/mk/pthread.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: pthread.buildlink2.mk,v 1.6 2002/12/07 02:37:57 schmonz Exp $ +# $NetBSD: pthread.buildlink2.mk,v 1.7 2003/01/25 08:39:54 jlam Exp $ # # The pthreads strategy for pkgsrc is to "bless" a particular pthread # package as the Official Pthread Replacement (OPR). A package that uses @@ -150,9 +150,20 @@ BUILDLINK_FILES.pthread= include/pthread.h BUILDLINK_FILES.pthread+= lib/libpthread.* BUILDLINK_TARGETS+= pthread-buildlink +BUILDLINK_TARGETS+= pthread-buildlink-la + +LIBTOOL_ARCHIVE_UNTRANSFORM_SED+= \ + -e "s|${BUILDLINK_PREFIX.pthread}/lib/libpthread.la|-lpthread|g" \ + -e "s|${LOCALBASE}/lib/libpthread.la|-lpthread|g" pthread-buildlink: _BUILDLINK_USE +pthread-buildlink-la: + ${_PKG_SILIENT}${_PKG_DEBUG} \ + lafile="${BUILDLINK_DIR}/lib/libpthread.la"; \ + libpattern="${BUILDLINK_PREFIX.pthread}/lib/libpthread.*"; \ + ${BUILDLINK_FAKE_LA} + .elif ${PTHREAD_TYPE} == "${_PKG_PTHREAD}" . if exists(${_PKG_PTHREAD_BUILDLINK2_MK}) . if !empty(_PKG_PTHREAD_DEPENDS) -- cgit v1.2.3