Fix Lion conditional

This commit is contained in:
Sam Stephenson 2011-08-10 10:28:01 -05:00
parent fac8c31d0e
commit c87ceef0eb

View file

@ -112,7 +112,7 @@ after_install_package() {
use_gcc42_on_lion() {
if [ "$(uname -s)" = "Darwin" ]; then
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7)" = 0 ]; then
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7)" -eq 1 ]; then
export CC=/usr/bin/gcc-4.2
fi
fi