From fd7f0639239b6cf50f6ea79a3a3d160cec99e544 Mon Sep 17 00:00:00 2001 From: Peter Zhou Date: Thu, 10 Dec 2015 12:09:42 -0800 Subject: [PATCH] Using the headers for x86_64 instead of i386 RC4_INT is defined as unsigned char for i386, armv7, armv7s, arm64 which causes stack corruption for x86_64 platform. --- build-libssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-libssl.sh b/build-libssl.sh index 693415d..b3116ee 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -190,7 +190,7 @@ lipo -create ${CURRENTPATH}/bin/AppleTVSimulator${TVOS_SDKVERSION}-x86_64.sdk/li lipo -create ${CURRENTPATH}/bin/AppleTVSimulator${TVOS_SDKVERSION}-x86_64.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/AppleTVOS${TVOS_SDKVERSION}-arm64.sdk/lib/libcrypto.a -output ${CURRENTPATH}/lib/libcrypto-tvOS.a mkdir -p ${CURRENTPATH}/include -cp -R ${CURRENTPATH}/bin/iPhoneSimulator${IOS_SDKVERSION}-i386.sdk/include/openssl ${CURRENTPATH}/include/ +cp -R ${CURRENTPATH}/bin/iPhoneSimulator${IOS_SDKVERSION}-x86_64.sdk/include/openssl ${CURRENTPATH}/include/ echo "Building done." echo "Cleaning up..." rm -rf ${CURRENTPATH}/src/openssl-${VERSION}