You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2013/11/05 21:14:32 UTC

git commit: Fixed configure.ac to use $CC instead of 'gcc' for version checking.

Updated Branches:
  refs/heads/master a407c2872 -> 1293c46d4


Fixed configure.ac to use $CC instead of 'gcc' for version checking.

This has caused problems in settings where the desired compiler
isn't the system bundled GCC (as in Mac OS X Mavericks builds where
we have been using specific versions of GCC).

Review #14164 is re-enabled for $(CC) instead of 'gcc' and lets us
compile with GCC 4.8 on Mavericks instead of down-grading to 4.7.

From: Niklas Nielsen <ni...@qni.dk>
Review: https://reviews.apache.org/r/15193


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1293c46d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1293c46d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/1293c46d

Branch: refs/heads/master
Commit: 1293c46d4ddf51934eea6c86d99f092ffe4273c4
Parents: a407c28
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Tue Nov 5 12:13:26 2013 -0800
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Tue Nov 5 12:13:26 2013 -0800

----------------------------------------------------------------------
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/1293c46d/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index ac3f7f7..ba4ec1d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -195,7 +195,7 @@ AC_PROG_CXX([g++])
 AC_PROG_CC([gcc])
 
 # Check the version of gcc and add any flags as appropriate.
-GCC_VERSION="`gcc -dumpversion`"
+GCC_VERSION="`${CC} -dumpversion`"
 test $? = 0 || AC_MSG_ERROR([failed to determine version of gcc])
 case  "${GCC_VERSION}" in
   4.4*)