diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2019-11-26 11:21:23 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2019-11-26 11:21:23 +0000 |
commit | f6d35d07e99ececbd4b467117a568ca33f428873 (patch) | |
tree | 4b0ddb8bf02028228c8da1f53653b64387835028 | |
parent | Update to the 20191124 snapshot of GCC 10.0.0. (diff) |
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
Notes
Notes:
svn path=/head/; revision=518462
-rw-r--r-- | lang/racket-minimal/Makefile | 9 | ||||
-rw-r--r-- | lang/racket/Makefile | 8 |
2 files changed, 14 insertions, 3 deletions
diff --git a/lang/racket-minimal/Makefile b/lang/racket-minimal/Makefile index ed628b2aeb06..1021ee344564 100644 --- a/lang/racket-minimal/Makefile +++ b/lang/racket-minimal/Makefile @@ -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,11 +55,17 @@ 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 diff --git a/lang/racket/Makefile b/lang/racket/Makefile index cc6a4c822b8a..a6f1f9c49a5f 100644 --- a/lang/racket/Makefile +++ b/lang/racket/Makefile @@ -52,11 +52,17 @@ 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 ${REINPLACE_CMD} -e "s@${STAGEDIR}@@" ${STAGEDIR}${PREFIX}/share/applications/*.desktop |