diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-09-28 08:44:01 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-09-28 08:44:01 +0000 |
commit | a7c63a2257f4923220afa43b88f7d5950abf0c80 (patch) | |
tree | 9ad0e693734e8af6f2022ccdf77f43a144a0e76b /Build/source/libs/luajit/configure.ac | |
parent | 300e9a57f1d8f94c6437fb988f1e3b41d33600ee (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/configure.ac')
-rw-r--r-- | Build/source/libs/luajit/configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/libs/luajit/configure.ac b/Build/source/libs/luajit/configure.ac index bec139f35d4..080c39dd2ec 100644 --- a/Build/source/libs/luajit/configure.ac +++ b/Build/source/libs/luajit/configure.ac @@ -48,9 +48,14 @@ AS_CASE([$host_os], LJ_ARCH() AS_CASE([$LJHOST], [Windows], [LJVM_MODE=peobj - LUAJIT_CFLAGS=-malign-double], + LUAJIT_CFLAGS="$LUAJIT_CFLAGS -malign-double"], [Darwin | iOS], [LJVM_MODE=machasm], [LJVM_MODE=elfasm]) +lj_save_CFLAGS=$CFLAGS +CFLAGS="$CFLAGS -fno-stack-protector" +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[]],[[]])], + [LUAJIT_CFLAGS="$LUAJIT_CFLAGS -fno-stack-protector"]) +CFLAGS=$lj_save_CFLAGS AM_CONDITIONAL([PEOBJ], [test "x$LJVM_MODE" = xpeobj]) AC_SUBST([LUAJIT_CFLAGS]) |