aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrik Weiskircher <pat@icore.at>2009-09-06 17:42:50 +0200
committerMax Kellermann <max@duempel.org>2009-09-06 17:42:50 +0200
commit4ebf53ffdfcba05c313e8d7b3cde125c2d64af8a (patch)
treeecadbc87dc3820eb1176d2ad47154011e9de401f
parent8b6a5d19d01ddf0657a64634ccd66b6fde66b735 (diff)
downloadmpd-4ebf53ffdfcba05c313e8d7b3cde125c2d64af8a.tar.gz
mpd-4ebf53ffdfcba05c313e8d7b3cde125c2d64af8a.tar.xz
mpd-4ebf53ffdfcba05c313e8d7b3cde125c2d64af8a.zip
configure.ac: use /Developer/SDKs/MacOSX10.5.sdk
First, this is not a nice fix. I am also not sure why the error happens in the first place. I assume Apple deprecated some stuff in 10.6 + x86_64. My patch simply uses the 10.5 SDK if compiling on 10.6 Snow Leopard - which is installed by default if you install XCode 3.2 that comes with Snow Leopard. The reason this is not a nice fix is, of course, that this doesn't fix the problem. It just "postpones" it to the next release of MacOS X. But, some people may need it, and its better than nothing.
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b74fbf9b0..d30e89229 100644
--- a/configure.ac
+++ b/configure.ac
@@ -748,6 +748,12 @@ case "$host_os" in
enable_osx=yes ;;
esac
+case "$host_os" in
+ darwin10*)
+ CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk"
+ ;;
+esac
+
AM_CONDITIONAL(HAVE_OSX, test x$enable_osx = xyes)
AC_ARG_ENABLE(shout,