From 056e8c7c012b00261133259d6438ff8303a8c36c Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 29 Jan 2019 12:20:23 +0000 Subject: Fix failure to link libman using the Darwin linker Thanks to George Plymale II and John Gardner. * configure.ac: Add "-Wl,-flat_namespace,-undefined,suppress" to CFLAGS on Darwin. * NEWS: Document this. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5d761d5e..e4abb173 100644 --- a/configure.ac +++ b/configure.ac @@ -59,6 +59,13 @@ case $host_os in dnl environment: CFLAGS="$CFLAGS -YPOSIX" ;; + *darwin*) + dnl libman intentionally has an undefined "sandbox" symbol + dnl which is supplied by each application. The Darwin + dnl linker refuses to do this by default, and needs some + dnl help. + CFLAGS="$CFLAGS -Wl,-flat_namespace,-undefined,suppress" + ;; esac if test "$GCC" = yes then -- cgit v1.2.3