From c95c2233c2b468c278f328cef6bfc160f748ee02 Mon Sep 17 00:00:00 2001 From: Mato Date: Fri, 17 May 2013 12:34:19 +0200 Subject: [PATCH] check openssl version for configuration --- build-libssl.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build-libssl.sh b/build-libssl.sh index 6e0d6ea..0351809 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -80,7 +80,12 @@ do mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - ./Configure iphoneos-cross --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 + if [[ "$VERSION" =~ 1.0.0. ]]; then + ./Configure BSD-generic32 --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 + else + ./Configure iphoneos-cross --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 + fi + # add -isysroot to CC= sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile"