Fix strange results when using a zsh
--HG-- branch : bgschaid/minorAdditionsBranch
This commit is contained in:
parent
298d5fc0fe
commit
7ac8e597de
1 changed files with 6 additions and 2 deletions
|
@ -261,8 +261,12 @@ Darwin)
|
|||
|
||||
# Make sure that binaries use the best features of the used OS-Version
|
||||
# We need to get rid of the revision number from this string. eg turn "10.7.5" into "10.7"
|
||||
v=(`sw_vers -productVersion | sed 's/\./ /g'`)
|
||||
export MACOSX_DEPLOYMENT_TARGET="${v[0]}.${v[1]}"
|
||||
|
||||
# this gives strange results with some shells
|
||||
# v=(`sw_vers -productVersion | sed 's/\./ /g'`)
|
||||
# export MACOSX_DEPLOYMENT_TARGET="${v[0]}.${v[1]}"
|
||||
|
||||
export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion | sed -e "s/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2/g"`
|
||||
|
||||
if [ "$compilerInstall" == "System" ]
|
||||
then
|
||||
|
|
Reference in a new issue