summaryrefslogtreecommitdiff
path: root/Build/source/libs/luajit/m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-09-28 08:44:01 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-09-28 08:44:01 +0000
commita7c63a2257f4923220afa43b88f7d5950abf0c80 (patch)
tree9ad0e693734e8af6f2022ccdf77f43a144a0e76b /Build/source/libs/luajit/m4
parent300e9a57f1d8f94c6437fb988f1e3b41d33600ee (diff)
libs/luajit: Try to fix it for NetBSD/amd64
git-svn-id: svn://tug.org/texlive/trunk@38487 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/luajit/m4')
-rw-r--r--Build/source/libs/luajit/m4/lj-system.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/libs/luajit/m4/lj-system.m4 b/Build/source/libs/luajit/m4/lj-system.m4
index 5f0d164af80..f8069d79c8b 100644
--- a/Build/source/libs/luajit/m4/lj-system.m4
+++ b/Build/source/libs/luajit/m4/lj-system.m4
@@ -13,15 +13,18 @@ m4_define([_LJ_ARCH], [dnl
rm -f dynasm_flags native_flags
AC_MSG_CHECKING([for architecture])
cp conftest.i system_flags
+LUAJIT_CFLAGS='-fomit-frame-pointer'
AS_IF([grep 'LJ_TARGET_X64 ' conftest.i >/dev/null 2>&1],
[LJARCH=x64],
[grep 'LJ_TARGET_X86 ' conftest.i >/dev/null 2>&1],
[LJARCH=x86
- LUAJIT_CFLAGS='-march=i686 -msse -msse2 -mfpmath=sse'],
+ LUAJIT_CFLAGS="$LUAJIT_CFLAGS -march=i686 -msse -msse2 -mfpmath=sse"],
[grep 'LJ_TARGET_ARM ' conftest.i >/dev/null 2>&1],
[LJARCH=arm],
[grep 'LJ_TARGET_ARM64 ' conftest.i >/dev/null 2>&1],
- [LJARCH=arm64],
+ [LJARCH=arm64
+ AS_IF([test "x$LJHOST" = xiOS],
+ [LUAJIT_CFLAGS='-fno-omit-frame-pointer'])],
[grep 'LJ_TARGET_PPC ' conftest.i >/dev/null 2>&1],
[LJARCH=ppc
AS_IF([grep 'LJ_LE 1' conftest.i >/dev/null 2>&1],