diff options
author | jlam <jlam> | 2003-01-25 08:39:54 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-01-25 08:39:54 +0000 |
commit | 70a83b0157f0702b6c27253728e0ec3928be1faf (patch) | |
tree | 705cd808e4dbcd1b48e2c70e7892fd1e1ffaa92f /mk | |
parent | 822199e461ce715d742957313a73d57c386127b7 (diff) | |
download | pkgsrc-70a83b0157f0702b6c27253728e0ec3928be1faf.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')
-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) |