mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Add support for GCC-based targets to luajit
Summary: luajit requires CC to be passed on the command line, not via the Make environment in order to override the Makefile. Pass it explicitly, and for GCC targets (powerpc, mips, sparc64) explicitly use ports GCC. Reviewed By: mat Differential Revision: https://reviews.freebsd.org/D13804
This commit is contained in:
parent
7059d3ac07
commit
d2ac3fee9c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458594
1 changed files with 7 additions and 2 deletions
|
@ -14,11 +14,16 @@ COMMENT= Just-In-Time Compiler for Lua
|
||||||
WRKSRC= ${WRKDIR}/LuaJIT-${DISTVERSION}
|
WRKSRC= ${WRKDIR}/LuaJIT-${DISTVERSION}
|
||||||
USES= gmake
|
USES= gmake
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
MAKE_ARGS= CC=${CC}
|
||||||
|
|
||||||
PLIST_SUB+= VERSION=${DISTVERSION}
|
PLIST_SUB+= VERSION=${DISTVERSION}
|
||||||
|
BROKEN_powerpc64= Not ported to powerpc64 upstream
|
||||||
|
|
||||||
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
|
.include <bsd.port.options.mk>
|
||||||
ONLY_FOR_ARCHS_REASON= Requires newer gcc/clang to compile.
|
|
||||||
|
.if ${ARCH:Mpowerpc*} || ${ARCH:Mmips*} || ${ARCH:Msparc*}
|
||||||
|
USE_GCC=yes
|
||||||
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
${LN} -sf ${PORTNAME}-${DISTVERSION} \
|
${LN} -sf ${PORTNAME}-${DISTVERSION} \
|
||||||
|
|
Loading…
Add table
Reference in a new issue