From dc4cb410c07590890a397efa50c1e3855552c84f Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 8 Jun 2017 10:54:43 -0400 Subject: [PATCH] Fix: remove AC_FUNC_MALLOC for cross-compile MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit AC_FUNC_MALLOC/REALLOC are based on a run-time test which fails when cross-compiling and we don't use the results from these tests anyway. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 0addb4c5..a0a076e0 100644 --- a/configure.ac +++ b/configure.ac @@ -118,10 +118,8 @@ AC_TYPE_UINT8_T # Checks for library functions. AC_FUNC_ALLOCA AC_FUNC_FORK -AC_FUNC_MALLOC AC_FUNC_MKTIME AC_FUNC_MMAP -AC_FUNC_REALLOC AC_FUNC_STRERROR_R AC_CHECK_FUNCS([ \ atexit \ @@ -151,6 +149,10 @@ AC_CHECK_FUNCS([ \ uname \ ]) +# AC_FUNC_MALLOC causes problems when cross-compiling. +#AC_FUNC_MALLOC +#AC_FUNC_REALLOC + MINGW32=no DEFAULT_ENABLE_DEBUG_INFO=yes LT_NO_UNDEFINED="" -- 2.34.1