diff options
author | alnsn <alnsn@pkgsrc.org> | 2015-12-06 00:25:26 +0000 |
---|---|---|
committer | alnsn <alnsn@pkgsrc.org> | 2015-12-06 00:25:26 +0000 |
commit | 99476051dd426bbdc2880d7c6d0832ac4362d0e9 (patch) | |
tree | 3a10b02a7942b11565696c464d3379c5e2cd87ae /lang/lua51 | |
parent | 045f3cd576ac84d4704d3f39b712147cb454775c (diff) | |
download | pkgsrc-99476051dd426bbdc2880d7c6d0832ac4362d0e9.tar.gz |
Fix pkg/47587 lua not linked to pthread causes issues with modules.
Diffstat (limited to 'lang/lua51')
-rw-r--r-- | lang/lua51/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lang/lua51/Makefile b/lang/lua51/Makefile index 5ab88899584..9d5f01e7f77 100644 --- a/lang/lua51/Makefile +++ b/lang/lua51/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.5 2015/03/22 17:20:24 bsiegert Exp $ +# $NetBSD: Makefile,v 1.6 2015/12/06 00:25:26 alnsn Exp $ DISTNAME= lua-${LUA_VERSION} PKGNAME= lua51-${LUA_VERSION} -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= lang MASTER_SITES= http://www.lua.org/ftp/ \ http://www.tecgraf.puc-rio.br/lua/ftp/ @@ -29,6 +29,16 @@ MAKE_FLAGS+= CC=cc DOCDIR= ${PREFIX}/share/doc/lua-5.1 EGDIR= ${PREFIX}/share/examples/lua-5.1 +# pkg/47587 lua not linked to pthread causes issues with modules +PTHREAD_OPTS+= native + +.include "../../mk/pthread.buildlink3.mk" + +.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native" +CFLAGS+= -pthread +LDFLAGS+= -pthread +.endif + .if ${OPSYS} == "FreeBSD" BUILD_TARGET= freebsd .elif !empty(OPSYS:M*BSD*) || ${OPSYS} == "DragonFly" |