summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b5bcf13..407112a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,17 @@ case $host_os in
esac
AC_SUBST(STRINGSABIOPTIONS)
+case $host_os in
+ darwin*)
+ OS_CFLAGS="-Wl,-flat_namespace"
+ ;;
+ *)
+ OS_CFLAGS=
+ ;;
+esac
+
+CFLAGS="$CFLAGS $OS_CFLAGS"
+
# Man page processing requirements
XORG_PROG_RAWCPP
XORG_MANPAGE_SECTIONS