Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/fs-uae fs-uae: Disable the JIT where unsuppo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/663d9f7321e7
branches:  trunk
changeset: 434931:663d9f7321e7
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Jun 28 14:34:06 2020 +0000

description:
fs-uae: Disable the JIT where unsupported, otherwise ./configure fails.

diffstat:

 emulators/fs-uae/Makefile |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 5d3d3cd360dd -r 663d9f7321e7 emulators/fs-uae/Makefile
--- a/emulators/fs-uae/Makefile Sun Jun 28 14:05:58 2020 +0000
+++ b/emulators/fs-uae/Makefile Sun Jun 28 14:34:06 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2020/05/23 09:12:57 adam Exp $
+# $NetBSD: Makefile,v 1.15 2020/06/28 14:34:06 nia Exp $
 
 DISTNAME=      fs-uae-3.0.5
 CATEGORIES=    emulators
@@ -14,7 +14,19 @@
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-libmpeg2
 
+.include "../../mk/bsd.prefs.mk"
+
+# See the configure script for the full conditions for whether
+# the JIT is supported.
+#error JIT is only supported on x86/x86-64
+#error no JIT on OpenBSD/FreeBSD right now
+.if ${MACHINE_ARCH} != "i386" || \
+    ${MACHINE_ARCH} != "x86_64" || \
+    ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD"
+CONFIGURE_ARGS+=       --disable-jit
+.else
 NOT_PAX_MPROTECT_SAFE+=        bin/fs-uae
+.endif
 
 # src/debug.cpp: In function 'void debug()':
 # src/debug.cpp:5361:188: error: array subscript has type 'char' [-Werror=char-subscripts]
@@ -24,7 +36,6 @@
 # This may produce unexpected results with long process names.
 BUILDLINK_TRANSFORM+=  rm:-Werror=char-subscripts
 
-.include "../../mk/bsd.prefs.mk"
 .if ${OPSYS} == "Darwin"
 #OPENAL_CFLAGS="-framework OpenAL"
 .else



Home | Main Index | Thread Index | Old Index