Updated Branches: refs/heads/master e76be3675 -> bbc348fe8
Fixed configure.ac to require libc++ only on Mac OS X. This patch fixes configure failure on Linux clang builds. Review: https://reviews.apache.org/r/16924 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0d52d6d9 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0d52d6d9 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0d52d6d9 Branch: refs/heads/master Commit: 0d52d6d9cb4a32f086153317b0e3a86595da6c90 Parents: e76be36 Author: Vinson Lee <[email protected]> Authored: Thu Feb 6 17:54:24 2014 -0800 Committer: Benjamin Mahler <[email protected]> Committed: Thu Feb 6 17:54:24 2014 -0800 ---------------------------------------------------------------------- 3rdparty/libprocess/configure.ac | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/0d52d6d9/3rdparty/libprocess/configure.ac ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/configure.ac b/3rdparty/libprocess/configure.ac index e461590..25aa5f7 100644 --- a/3rdparty/libprocess/configure.ac +++ b/3rdparty/libprocess/configure.ac @@ -152,10 +152,14 @@ fi if test "x$with_cxx11" = "xyes"; then AX_CXX_COMPILE_STDCXX_11([noext], [mandatory]) - # If we're using clang, we need to pass -stdlib=libc++ too. - if test "x$CLANG" = "xyes"; then - CXXFLAGS="$CXXFLAGS -stdlib=libc++" - fi + case "$host_os" in + darwin* ) + # If we're using clang, we need to pass -stdlib=libc++ too. + if test "x$CLANG" = "xyes"; then + CXXFLAGS="$CXXFLAGS -stdlib=libc++" + fi + ;; + esac # Force gtest to use it's own tuple implementation since 'tr1/tuple' # might not exist (for example, if building with clang).
