[PATCH xserver 2/4] configure.ac: Use -Wl, -all_load when building Xorg on darwin
Jeremy Huddleston
jeremyhu at apple.com
Wed Jan 11 12:40:47 PST 2012
Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
---
configure.ac | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index a203ab2..c9acb2b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1461,6 +1461,9 @@ AC_SUBST([UTILS_SYS_LIBS])
# Some platforms require extra flags to do this. libtool should set the
# necessary flags for each platform when -export-dynamic is passed to it.
LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
+case $host_os in
+ darwin*) LD_EXPORT_SYMBOLS_FLAG="$LD_EXPORT_SYMBOLS_FLAG -Wl,-all_load" ;;
+esac
AC_SUBST([LD_EXPORT_SYMBOLS_FLAG])
dnl Imake defines SVR4 on SVR4 systems, and many files check for it, so
@@ -1687,6 +1690,12 @@ if test "x$XORG" = xyes; then
gnu*)
XORG_OS_SUBDIR="hurd"
;;
+ darwin*)
+ XORG_OS_SUBDIR="stub"
+ AC_MSG_NOTICE([m4_text_wrap(m4_join([ ],
+ [Support for the Xorg DDX on Mac OS X is in the early stages.],
+ [If you intended to build XQuartz, please reconfigure with the appropriate options.]))])
+ ;;
*)
XORG_OS_SUBDIR="stub"
AC_MSG_NOTICE([m4_text_wrap(m4_join([ ],
--
1.7.7.4
More information about the xorg-devel
mailing list