Build fixes for recent libc versions (post glibc 2.19)
authorSteve Youngs <steve@sxemacs.org>
Fri, 17 May 2019 15:00:07 +0000 (01:00 +1000)
committerSteve Youngs <steve@sxemacs.org>
Fri, 17 May 2019 15:00:07 +0000 (01:00 +1000)
commit8bda9b596c482119b1c43d6af218157a13e6c2dc
treea8bdd59bb3f87e4efa90940e6df8593b55ce6ae3
parent44d2a2cbc9f67ab859f1567acfb7ad9cc439fb55
Build fixes for recent libc versions (post glibc 2.19)

This fixes two 'undefined reference' errors when building with a recent
glibc.  One in effi.c for 'dlsym', and the other in emacs.c for
'memory_warnings'.

* configure.ac: Fix mmap detection.
Include -ldl in FFI_LIBS.
Ensure that vm-limit.o is added to the objects when using the
system malloc.
Default to using the system malloc.

* m4/sxe-emodffi.m4 (SXE_CHECK_FFI): Include -ldl in FFI_LIBS.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
configure.ac
m4/sxe-emodffi.m4