From: Michael Jeanson Date: Thu, 8 Jun 2017 14:54:43 +0000 (-0400) Subject: Fix: remove AC_FUNC_MALLOC for cross-compile X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=dc4cb410c07590890a397efa50c1e3855552c84f Fix: remove AC_FUNC_MALLOC for cross-compile 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 --- 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=""