MacOSX-Framework: sdk regex fix for sdk 10.10 and later

closes #507
This commit is contained in:
xiangbin li 2015-10-25 12:35:16 +01:00 committed by Daniel Stenberg
parent d9a1776b32
commit ca20ca54b2

View File

@ -65,7 +65,7 @@ else
ARCHES64='-arch x86_64'
#We "know" that 10.4 and earlier do not support 64bit
OLD_SDK64=`ls $SDK_PATH|egrep -v "10.[0-4]"|head -1`
NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4]"|head -1`
NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4][^0-9]" | head -1`
if test $USE_OLD -gt 0
then
SDK64=$OLD_SDK64