Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2019 11:21:23 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518462 - in head/lang: racket racket-minimal
Message-ID:  <201911261121.xAQBLNv6035082@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Tue Nov 26 11:21:23 2019
New Revision: 518462
URL: https://svnweb.freebsd.org/changeset/ports/518462

Log:
  lang/racket and lang/racket-minimal: make FUTURES depend on JIT.
  
  Set CFLAGS only for amd64 with JIT enabled, so as to unbreak i386
  (poudriere confirms.)
  
  PR:           237528
  Submitted by: m.ne@gmx.net

Modified:
  head/lang/racket-minimal/Makefile
  head/lang/racket/Makefile

Modified: head/lang/racket-minimal/Makefile
==============================================================================
--- head/lang/racket-minimal/Makefile	Tue Nov 26 11:11:36 2019	(r518461)
+++ head/lang/racket-minimal/Makefile	Tue Nov 26 11:21:23 2019	(r518462)
@@ -24,7 +24,6 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BROKEN_armv6=		fails to compile: ./lightning/lightning.h:81:2: error: GNU lightning does not support the current target
 BROKEN_armv7=		fails to compile: ./lightning/lightning.h:81:2: error: GNU lightning does not support the current target
-BROKEN_i386=		fails to build: Seg fault (internal error) at 0x606060a
 BROKEN_powerpc64=	fails to build: jit.c: 'JIT_LOCAL4' undeclared (first use in this function)
 NOT_FOR_ARCHS=	aarch64 mips mips64 sparc64
 NOT_FOR_ARCHS_REASON=	not yet ported to this arch
@@ -56,10 +55,16 @@ OPTIONS_DEFAULT_i386=	JIT
 
 FUTURES_DESC=	Enable futures
 JIT_DESC=	Enable JIT compiler
-JIT_CFLAGS=	-msse -msse2 -mfpmath=sse
 
+FUTURES_IMPLIES=		JIT
 FUTURES_CONFIGURE_ENABLE=	futures
 JIT_CONFIGURE_ENABLE=		jit
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MJIT} && ${ARCH} == "amd64"
+CFLAGS+=	-msse -msse2 -mfpmath=sse
+.endif
 
 post-install:
 	${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete

Modified: head/lang/racket/Makefile
==============================================================================
--- head/lang/racket/Makefile	Tue Nov 26 11:11:36 2019	(r518461)
+++ head/lang/racket/Makefile	Tue Nov 26 11:21:23 2019	(r518462)
@@ -52,10 +52,16 @@ OPTIONS_DEFAULT_i386=	JIT
 
 FUTURES_DESC=	Enable futures
 JIT_DESC=	Enable JIT compiler
-JIT_CFLAGS=	-msse -msse2 -mfpmath=sse
 
+FUTURES_IMPLIES=		JIT
 FUTURES_CONFIGURE_ENABLE=	futures
 JIT_CONFIGURE_ENABLE=		jit
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MJIT} && ${ARCH} == "amd64"
+CFLAGS+=	-msse -msse2 -mfpmath=sse
+.endif
 
 post-install:
 	${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete



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