fix on powerpc, and add an explicit ONLY_FOR_ARCHS listing the arches
which the JIT has been written for (though some may not work in the port yet).
This commit is contained in:
parent
9553728031
commit
61b9f7545f
@ -1,4 +1,6 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/10/27 14:05:33 abieber Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2012/11/02 02:08:38 sthen Exp $
|
||||
|
||||
ONLY_FOR_ARCHS = powerpc arm i386 amd64 mips64 mips64el
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
SHARED_LIBS += luajit-${MODLUA_VERSION} 0.0 # 2.0.0
|
||||
@ -26,6 +28,11 @@ MASTER_SITES = ${HOMEPAGE}download/
|
||||
|
||||
MODULES = lang/lua
|
||||
|
||||
MODULES += gcc4
|
||||
MODGCC4_VERSION = 4.6
|
||||
MODGCC4_ARCHS = powerpc
|
||||
MODGCC4_LANGS = c
|
||||
|
||||
MAKE_FLAGS += \
|
||||
CC="${CC}" \
|
||||
CCOPT="${CFLAGS}" \
|
||||
|
21
lang/luajit/patches/patch-src_host_buildvm_asm_c
Normal file
21
lang/luajit/patches/patch-src_host_buildvm_asm_c
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-src_host_buildvm_asm_c,v 1.1 2012/11/02 02:08:38 sthen Exp $
|
||||
|
||||
.gnu_attribute requires binutils 2.18
|
||||
|
||||
--- src/host/buildvm_asm.c.orig Sun Oct 28 10:44:35 2012
|
||||
+++ src/host/buildvm_asm.c Sun Oct 28 10:45:15 2012
|
||||
@@ -283,12 +283,14 @@ void emit_asm(BuildCtx *ctx)
|
||||
#if !LJ_TARGET_PS3
|
||||
fprintf(ctx->fp, "\t.section .note.GNU-stack,\"\"," ELFASM_PX "progbits\n");
|
||||
#endif
|
||||
+#if 0
|
||||
#if LJ_TARGET_PPCSPE
|
||||
/* Soft-float ABI + SPE. */
|
||||
fprintf(ctx->fp, "\t.gnu_attribute 4, 2\n\t.gnu_attribute 8, 3\n");
|
||||
#elif LJ_TARGET_PPC && !LJ_TARGET_PS3
|
||||
/* Hard-float ABI. */
|
||||
fprintf(ctx->fp, "\t.gnu_attribute 4, 1\n");
|
||||
+#endif
|
||||
#endif
|
||||
/* fallthrough */
|
||||
case BUILD_coffasm:
|
13
lang/luajit/patches/patch-src_lj_arch_h
Normal file
13
lang/luajit/patches/patch-src_lj_arch_h
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_lj_arch_h,v 1.1 2012/11/02 02:08:38 sthen Exp $
|
||||
--- src/lj_arch.h.orig Fri Oct 26 11:48:11 2012
|
||||
+++ src/lj_arch.h Fri Oct 26 11:48:14 2012
|
||||
@@ -314,9 +314,6 @@
|
||||
#if defined(_SOFT_FLOAT) || defined(_SOFT_DOUBLE)
|
||||
#error "No support for PowerPC CPUs without double-precision FPU"
|
||||
#endif
|
||||
-#if defined(_LITTLE_ENDIAN)
|
||||
-#error "No support for little-endian PowerPC"
|
||||
-#endif
|
||||
#if defined(_LP64)
|
||||
#error "No support for PowerPC 64 bit mode"
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user