[yt-svn] commit/yt: MatthewTurk: Adding check for Mountain Lion compilation:
Bitbucket
commits-noreply at bitbucket.org
Mon Aug 6 13:05:57 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/15bfbdcf71d7/
changeset: 15bfbdcf71d7
branch: stable
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 f3433665ccaf898fcb4f1dc2addf0248fa8a74cc -r 15bfbdcf71d775096c3649926c2ec194b1e69c79 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