diff options
author | jlam <jlam> | 2003-01-25 08:39:54 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-01-25 08:39:54 +0000 |
commit | e927147b0ae3b437f59eaf165b4d4bda665e6a8d (patch) | |
tree | 705cd808e4dbcd1b48e2c70e7892fd1e1ffaa92f /mk/pthread.buildlink2.mk | |
parent | 065450e6e77cce7d0a2a66b12cba99e783738ca6 (diff) | |
download | pkgsrc-e927147b0ae3b437f59eaf165b4d4bda665e6a8d.tar.gz |
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.
Diffstat (limited to 'mk/pthread.buildlink2.mk')
-rw-r--r-- | mk/pthread.buildlink2.mk | 13 |
1 files changed, 12 insertions, 1 deletions
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) |