More error information for configure and make
This commit is contained in:
parent
33c9d59ddb
commit
a1666603b7
|
@ -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
|
||||
|
@ -96,10 +97,24 @@ do
|
|||
./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
|
||||
|
|
Loading…
Reference in New Issue