diff --git a/build-libssl.sh b/build-libssl.sh index 041abc7..15efe6f 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -88,6 +88,7 @@ do mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" + set +e if [[ "$VERSION" =~ 1.0.0. ]]; then ./Configure BSD-generic32 --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 elif [ "${ARCH}" == "x86_64" ]; then @@ -95,11 +96,25 @@ do else ./Configure iphoneos-cross --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 fi + + if [ $? != 0 ]; + then + echo "Problem while configure - Please check ${LOG}" + exit 1 + fi # add -isysroot to CC= sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -miphoneos-version-min=7.0 !" "Makefile" make >> "${LOG}" 2>&1 + + if [ $? != 0 ]; + then + echo "Problem while make - Please check ${LOG}" + exit 1 + fi + + set -e make install >> "${LOG}" 2>&1 make clean >> "${LOG}" 2>&1 done