@@ -73,7 +73,7 @@ configure_make()
73
73
export CROSS_TOP=" ${DEVELOPER} /Platforms/${PLATFORM} .platform/Developer"
74
74
export CROSS_SDK=" ${PLATFORM}${SDK_VERSION} .sdk"
75
75
export TOOLS=" ${DEVELOPER} "
76
- export CC=" ${TOOLS} /usr/bin/gcc -arch ${ARCH} "
76
+ export CC=" ${TOOLS} /Toolchains/XcodeDefault.xctoolchain/ usr/bin/clang -arch ${ARCH} "
77
77
78
78
PREFIX_DIR=" ${pwd_path} /../output/ios/openssl-${ARCH} "
79
79
if [ -d " ${PREFIX_DIR} " ]; then
@@ -83,22 +83,17 @@ configure_make()
83
83
84
84
if [[ " ${ARCH} " == " x86_64" ]]; then
85
85
unset IPHONEOS_DEPLOYMENT_TARGET
86
- ./Configure darwin64-x86_64-cc --prefix=" ${PREFIX_DIR} "
87
- export CFLAGS=" -isysroot ${CROSS_TOP} /SDKs/${CROSS_SDK} "
86
+ ./Configure darwin64-x86_64-cc --prefix=" ${PREFIX_DIR} " " -isysroot ${CROSS_TOP} /SDKs/${CROSS_SDK} "
88
87
elif [[ " ${ARCH} " == " i386" ]]; then
89
88
unset IPHONEOS_DEPLOYMENT_TARGET
90
- ./Configure darwin-i386-cc --prefix=" ${PREFIX_DIR} "
91
- export CFLAGS=" -isysroot ${CROSS_TOP} /SDKs/${CROSS_SDK} "
89
+ ./Configure darwin-i386-cc --prefix=" ${PREFIX_DIR} " " -isysroot ${CROSS_TOP} /SDKs/${CROSS_SDK} "
92
90
else
93
91
# instruction:
94
92
# 1.no-shared and -fembed-bitcode is not compatibility
95
93
# 2.advise use only .a static library on iOS
96
94
export IPHONEOS_DEPLOYMENT_TARGET=${IOS_MIN_TARGET}
97
- ./Configure iphoneos-cross no-shared --prefix=" ${PREFIX_DIR} "
98
- export CFLAGS=" -isysroot ${CROSS_TOP} /SDKs/${CROSS_SDK} -fembed-bitcode "
99
- sed -ie " s!-fno-common!-fno-common -fembed-bitcode !" " Makefile"
95
+ ./Configure iphoneos-cross no-shared --prefix=" ${PREFIX_DIR} " " -fembed-bitcode"
100
96
fi
101
- echo CFLAGS=${CFLAGS}
102
97
# read -n1 -p "Press any key to continue..."
103
98
104
99
if [ ! -d ${CROSS_TOP} /SDKs/${CROSS_SDK} ]; then
0 commit comments