git: 68954edbe010 - main - lang/luajit: link with pthread
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Jan 2022 22:21:40 UTC
The branch main has been updated by osa: URL: https://cgit.FreeBSD.org/ports/commit/?id=68954edbe01044a7d72eeac0f103cc4c1ee633ee commit 68954edbe01044a7d72eeac0f103cc4c1ee633ee Author: Sergey A. Osokin <osa@FreeBSD.org> AuthorDate: 2022-01-05 22:20:47 +0000 Commit: Sergey A. Osokin <osa@FreeBSD.org> CommitDate: 2022-01-05 22:20:47 +0000 lang/luajit: link with pthread Bump PORTREVISION. PR: 191476 --- lang/luajit/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lang/luajit/Makefile b/lang/luajit/Makefile index 4d7b7d14fc36..603a16306820 100644 --- a/lang/luajit/Makefile +++ b/lang/luajit/Makefile @@ -2,7 +2,7 @@ PORTNAME= luajit DISTVERSION= 2.0.5 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= lang MASTER_SITES= https://luajit.org/download/ DISTNAME= LuaJIT-${DISTVERSION} @@ -10,6 +10,9 @@ DISTNAME= LuaJIT-${DISTVERSION} MAINTAINER= osa@FreeBSD.org COMMENT= Just-In-Time Compiler for Lua +OPTIONS_DEFINE= PTHREAD +OPTIONS_DESC= with pthread support + LICENSE= MIT PD LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/COPYRIGHT @@ -33,6 +36,10 @@ PLIST_SUB+= VERSION=${DISTVERSION} USE_GCC=yes .endif +.if ${PORT_OPTIONS:MPTHREAD} +LDFLAGS+= -lm -pthread +.endif + post-install: ${LN} -sf ${PORTNAME}-${DISTVERSION} \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}