summaryrefslogtreecommitdiff
path: root/Build/source/libs/luajit/native
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/luajit/native')
-rwxr-xr-xBuild/source/libs/luajit/native/configure7
-rw-r--r--Build/source/libs/luajit/native/configure.ac3
2 files changed, 7 insertions, 3 deletions
diff --git a/Build/source/libs/luajit/native/configure b/Build/source/libs/luajit/native/configure
index cd3b9e8099d..7294da4c7a1 100755
--- a/Build/source/libs/luajit/native/configure
+++ b/Build/source/libs/luajit/native/configure
@@ -5142,8 +5142,11 @@ _ACEOF
if test "x$ac_cv_sizeof_void_p" != "x$HOST_PTR_SIZE"; then :
HOST_PTR_BITS=`expr 8 \* $HOST_PTR_SIZE`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pointer size mismatch in cross-build; use a ${HOST_PTR_BITS}bit compiler BULDCC." >&5
-$as_echo "$as_me: WARNING: pointer size mismatch in cross-build; use a ${HOST_PTR_BITS}bit compiler BULDCC." >&2;}
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pointer size mismatch in cross-build; use a ${HOST_PTR_BITS}bit compiler LUAJITCROSSCOMPILER." >&5
+$as_echo "$as_me: WARNING: pointer size mismatch in cross-build; use a ${HOST_PTR_BITS}bit compiler LUAJITCROSSCOMPILER." >&2;}
+if test "x$LUAJITCROSSCOMPILER" != x""; then :
+ CC=$LUAJITCROSSCOMPILER
+fi
case $HOST_PTR_BITS in #(
32|64) :
CC="$CC -m$HOST_PTR_BITS"; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying: $CC" >&5
diff --git a/Build/source/libs/luajit/native/configure.ac b/Build/source/libs/luajit/native/configure.ac
index ebb6d324dca..4d7940412e3 100644
--- a/Build/source/libs/luajit/native/configure.ac
+++ b/Build/source/libs/luajit/native/configure.ac
@@ -21,7 +21,8 @@ AC_PROG_LN_S
AC_CHECK_SIZEOF([void *])
AS_IF([test "x$ac_cv_sizeof_void_p" != "x$HOST_PTR_SIZE"], [dnl
HOST_PTR_BITS=`expr 8 \* $HOST_PTR_SIZE`
-AC_MSG_WARN([pointer size mismatch in cross-build; use a ${HOST_PTR_BITS}bit compiler BULDCC.])
+AC_MSG_WARN([pointer size mismatch in cross-build; use a ${HOST_PTR_BITS}bit compiler LUAJITCROSSCOMPILER.])
+AS_IF([test "x$LUAJITCROSSCOMPILER" != x""],[CC=$LUAJITCROSSCOMPILER], [])
AS_CASE([$HOST_PTR_BITS],
[32|64], [CC="$CC -m$HOST_PTR_BITS"; AC_MSG_WARN([trying: $CC])])])