AC_RUN_IFELSE won't work when cross-compiling

Change-Id: I8e4d439f0e03ca9e9e3088b451efd8d09bf37203
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134462
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
Tor Lillqvist
2022-05-17 12:41:37 +02:00
parent 0b58218390
commit 42eeb37397
+1 -1
View File
@@ -7420,7 +7420,7 @@ AC_SUBST([HAVE_LIBSTDCPP])
AC_SUBST([HAVE_LIBCPP])
HAVE_LIBCPP_DEBUG=
if test -n "$HAVE_LIBCPP" -a -n "$ENABLE_DBGUTIL"; then
if test -z "$CROSS_COMPILING" -a -n "$HAVE_LIBCPP" -a -n "$ENABLE_DBGUTIL"; then
# Libc++ supports debug mode only if built for it, Mac libc++ isn't,
# and there would be undefined references to debug functions.
# Moreover std::to_string() has a bug (https://reviews.llvm.org/D125184).