ThirdParty: Darwin platforms: using Mac Ports compilers only when specifying System compiler option

This commit is contained in:
Martin Beaudoin 2011-05-14 09:30:52 -04:00
parent f9cdbd511e
commit 410de58450

View file

@ -247,24 +247,27 @@ Darwin)
# Make sure that binaries use the best features of the used OS-Version # Make sure that binaries use the best features of the used OS-Version
export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion` export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion`
# Use Mac-Ports-Compiler instead of Apple-gcc-4.2 if [ "$compilerInstall" == "System" ]
case $WM_COMPILER in then
Gcc43) # Use Mac-Ports-Compiler instead of Apple-gcc-4.2
export WM_CC='gcc-mp-4.3' case $WM_COMPILER in
export WM_CXX='g++-mp-4.3' Gcc43)
;; export WM_CC='gcc-mp-4.3'
Gcc44) export WM_CXX='g++-mp-4.3'
export WM_CC='gcc-mp-4.4' ;;
export WM_CXX='g++-mp-4.4' Gcc44)
;; export WM_CC='gcc-mp-4.4'
Gcc45) export WM_CXX='g++-mp-4.4'
export WM_CC='gcc-mp-4.5' ;;
export WM_CXX='g++-mp-4.5' Gcc45)
;; export WM_CC='gcc-mp-4.5'
*) export WM_CXX='g++-mp-4.5'
export WM_COMPILER= ;;
;; *)
esac export WM_COMPILER=
;;
esac
fi
;; ;;