configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 42eeb373978deb660f38707babfc9d5af9da5cd9 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Tue May 17 11:42:25 2022 +0300 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Tue May 17 12:41:37 2022 +0200
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 <t...@collabora.com> diff --git a/configure.ac b/configure.ac index 3ba32994cb96..34ba3f7844e0 100644 --- a/configure.ac +++ b/configure.ac @@ -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).