[yt-svn] commit/yt: MatthewTurk: Adding check for Mountain Lion compilation:

Bitbucket commits-noreply at bitbucket.org
Mon Aug 6 11:51:44 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/c98bd507540c/
changeset:   c98bd507540c
branch:      yt
user:        MatthewTurk
date:        2012-08-06 20:51:34
summary:     Adding check for Mountain Lion compilation:

MPL_SUPP_CFLAGS="-mmacosx-version-min=10.7"
MPL_SUPP_CXXFLAGS="-mmacosx-version-min=10.7"
affected #:  1 file

diff -r 0fae6c70a51b683546489137ac61184b3c11b39a -r c98bd507540cd694876ec036d5ca2a270ecb88b1 doc/install_script.sh
--- a/doc/install_script.sh
+++ b/doc/install_script.sh
@@ -201,6 +201,12 @@
         echo "$ export CC=gcc-4.2"
         echo "$ export CXX=g++-4.2"
         echo
+        OSX_VERSION=`sw_vers -productVersion`
+        if [ "${OSX_VERSION##10.8}" != "${OSX_VERSION}" ]
+        then
+            MPL_SUPP_CFLAGS="${MPL_SUPP_CFLAGS} -mmacosx-version-min=10.7"
+            MPL_SUPP_CXXFLAGS="${MPL_SUPP_CXXFLAGS} -mmacosx-version-min=10.7"
+        fi
     fi
     if [ -f /etc/lsb-release ] && [ `grep --count buntu /etc/lsb-release` -gt 0 ]
     then

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list