From 6303a62a6f1d8879b64986328a6c4d051c919b77 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 27 Jun 2016 14:54:20 -0400 Subject: [PATCH] Fix: remove AC_FUNC_MALLOC from configure.ac AC_FUNC_MALLOC fails cross-compile builds and is only used to detect non-standard glibc behavior where malloc(0) does not return a null pointer. We don't depend on that behavior since we would have to ship a compat implementation of malloc() for this macro to be of any use. Keep it commented because autoscan will report it as missing and it might get re-introduced. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6d8c15f..1f41cf3 100644 --- a/configure.ac +++ b/configure.ac @@ -54,10 +54,12 @@ AC_TYPE_PID_T AC_TYPE_SIZE_T # Checks for library functions. -AC_FUNC_MALLOC AC_FUNC_MMAP AC_CHECK_FUNCS([bzero gettimeofday munmap sched_getcpu strtoul sysconf]) +# AC_FUNC_MALLOC causes problems when cross-compiling. +#AC_FUNC_MALLOC + # Find arch type AS_CASE([$host_cpu], [i386], [ARCHTYPE="x86" && SUBARCHTYPE="x86compat"], -- 2.34.1