openssl 1.1.x's default configuration results in app store rejection: The app references non-public symbols in <app name>: _getcontext, _makecontext, _setcontext

This commit is contained in:
Andrew Herbert 2017-03-03 14:42:09 +11:00
parent f9a1f18f3a
commit ee1cea7cd4
2 changed files with 10 additions and 5 deletions

View File

@ -60,6 +60,7 @@ echo_help()
echo " Note: The framework will contain include files from the architecture listed first"
echo
echo "Options for OpenSSL 1.1.0 and higher ONLY"
echo " --async Exclude no-async configure option and build with async support - do not use if submitting to App Store"
echo " --deprecated Exclude no-deprecated configure option and build with deprecated methods"
echo " --targets=\"TARGET TARGET ...\" Space-separated list of build targets"
echo " Options: ${DEFAULTTARGETS}"
@ -184,6 +185,7 @@ ARCHS=""
BRANCH=""
CLEANUP=""
CONFIG_ENABLE_EC_NISTP_64_GCC_128=""
CONFIG_NO_ASYNC=""
CONFIG_NO_DEPRECATED=""
IOS_SDKVERSION=""
LOG_VERBOSE=""
@ -200,6 +202,9 @@ case $i in
ARCHS="${i#*=}"
shift
;;
--async)
CONFIG_NO_ASYNC="false"
;;
--branch=*)
BRANCH="${i#*=}"
shift
@ -310,6 +315,11 @@ else
TARGETS="${DEFAULTTARGETS}"
fi
# Add no-async config option (if not overwritten) - async being enabled leads to App Store rejection
if [ "${CONFIG_NO_ASYNC}" != "false" ]; then
CONFIG_OPTIONS="${CONFIG_OPTIONS} no-async"
fi
# Add no-deprecated config option (if not overwritten)
if [ "${CONFIG_NO_DEPRECATED}" != "false" ]; then
CONFIG_OPTIONS="${CONFIG_OPTIONS} no-deprecated"

View File

@ -64,11 +64,6 @@ do
LOCAL_CONFIG_OPTIONS="${LOCAL_CONFIG_OPTIONS} enable-ec_nistp_64_gcc_128"
fi
# Disable unavailable async for tvOS builds
if [[ "${PLATFORM}" == AppleTV* ]]; then
LOCAL_CONFIG_OPTIONS="${LOCAL_CONFIG_OPTIONS} no-async"
fi
# Run Configure
run_configure