mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
585d5363b8
When luajit writes a ELF object file (using the -b option), it sets the size of the .strtab section one byte too short. In function bcsave_elfobj(), the offset of the .rodata section after .strtab is already calculated correctly, but the size of .strtab itself is one byte too small. Even though there is a zero byte after the last string in the table, the short size causes lld (the LLVM linker) to show an error message similar to: ld: error: obj/bytecode.o: string table non-null terminated Fix it by increasing the size of the .strtab section by one byte. This change has also been accepted upstream, but there is no new stable release yet. Approved by: portmgr (antoine) PR: 223688
29 lines
675 B
Makefile
29 lines
675 B
Makefile
# Created by: Sergey A. Osokin <osa@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= luajit
|
|
DISTVERSION= 2.0.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://luajit.org/download/
|
|
DISTNAME= LuaJIT-${DISTVERSION}
|
|
|
|
MAINTAINER= osa@FreeBSD.org
|
|
COMMENT= Just-In-Time Compiler for Lua
|
|
|
|
WRKSRC= ${WRKDIR}/LuaJIT-${DISTVERSION}
|
|
USES= gmake
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB+= VERSION=${DISTVERSION}
|
|
|
|
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
|
|
ONLY_FOR_ARCHS_REASON= Requires newer gcc/clang to compile.
|
|
|
|
post-install:
|
|
${LN} -sf ${PORTNAME}-${DISTVERSION} \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
@${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|