On 8/30/2021 1:29 PM, Iain Sandoe wrote:
Hi, Darwin provides an implementation of sbrk, which is detected by the libiberty configuration process. However, (like most of the BSD-derivatives) sbrk/brk are deprecated on Darwin which leads to build-time warnings. It seems that the configure process does not see the deprecation warnings as reason for excluding the fn. Darwin should use the malloc-based implementation. This patch works around the issue by removing sbrk from the functions searched (for Darwin only, although it’s likely that other BSD-ish ports might wish to do the same). Open to more elegant solutions, of course, tested on powerpc,i686,x86_64-darwin, x86_64, powerpc64- linux, OK for master? thanks Iain Signed-off-by: Iain Sandoe <i...@sandoe.co.uk> libiberty/ChangeLog: * configure: Regenerate. * configure.ac: Do not search for sbrk on Darwin. * xmalloc.c: Do not declare sbrk unless it has been found by configure.
OK jeff