Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2018 03:51:12 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458594 - head/lang/luajit
Message-ID:  <201801100351.w0A3pCtJ075569@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits (src committer)
Date: Wed Jan 10 03:51:12 2018
New Revision: 458594
URL: https://svnweb.freebsd.org/changeset/ports/458594

Log:
  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

Modified:
  head/lang/luajit/Makefile

Modified: head/lang/luajit/Makefile
==============================================================================
--- head/lang/luajit/Makefile	Wed Jan 10 03:47:36 2018	(r458593)
+++ head/lang/luajit/Makefile	Wed Jan 10 03:51:12 2018	(r458594)
@@ -14,11 +14,16 @@ COMMENT=	Just-In-Time Compiler for Lua
 WRKSRC=		${WRKDIR}/LuaJIT-${DISTVERSION}
 USES=		gmake
 USE_LDCONFIG=	yes
+MAKE_ARGS=	CC=${CC}
 
 PLIST_SUB+=	VERSION=${DISTVERSION}
+BROKEN_powerpc64=	Not ported to powerpc64 upstream
 
-ONLY_FOR_ARCHS=		amd64 armv6 armv7 i386
-ONLY_FOR_ARCHS_REASON=	Requires newer gcc/clang to compile.
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc*} || ${ARCH:Mmips*} || ${ARCH:Msparc*}
+USE_GCC=yes
+.endif
 
 post-install:
 	${LN} -sf ${PORTNAME}-${DISTVERSION} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801100351.w0A3pCtJ075569>