diff options
author | grant <grant@pkgsrc.org> | 2003-07-11 23:37:13 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-07-11 23:37:13 +0000 |
commit | 4f52e90180d75e6e624e6c69b0782ace00de9f11 (patch) | |
tree | 1d371cf9f46c889e14fae10f4bd1165c63a6e688 /mk | |
parent | ac3e34501e69d2c75068935ca7d6690f817ba74b (diff) | |
download | pkgsrc-4f52e90180d75e6e624e6c69b0782ace00de9f11.tar.gz |
also set PTHREAD_LDFLAGS=-lpthread if we aren't using native threads.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/pthread.buildlink2.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/pthread.buildlink2.mk b/mk/pthread.buildlink2.mk index bef393fadc3..66593837f9f 100644 --- a/mk/pthread.buildlink2.mk +++ b/mk/pthread.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: pthread.buildlink2.mk,v 1.12 2003/07/10 23:12:40 grant Exp $ +# $NetBSD: pthread.buildlink2.mk,v 1.13 2003/07/11 23:37:13 grant Exp $ # # The pthreads strategy for pkgsrc is to "bless" a particular pthread # package as the Official Pthread Replacement (OPR). A package that uses @@ -191,6 +191,7 @@ BUILDLINK_DEPENDS.${_PKG_PTHREAD}= ${_PKG_PTHREAD_DEPENDS} . endif BUILDLINK_PREFIX.pthread= ${BUILDLINK_PREFIX.${_PKG_PTHREAD}} BUILDLINK_CFLAGS.pthread= ${BUILDLINK_CFLAGS.${_PKG_PTHREAD}} +BUILDLINK_LDFLAGS.pthread= -lpthread . include "${_PKG_PTHREAD_BUILDLINK2_MK}" . else PKG_FAIL_REASON= "${PKGNAME} needs pthreads, but ${_PKG_PTHREAD_BUILDLINK2_MK} is missing." |