File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed
ObjectiveGitFramework.xcodeproj Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 19441944 CURRENT_PROJECT_VERSION = 1;
19451945 DYLIB_COMPATIBILITY_VERSION = 1;
19461946 DYLIB_CURRENT_VERSION = 1;
1947- ENABLE_BITCODE = NO;
19481947 HEADER_SEARCH_PATHS = (
19491948 "$(inherited)",
19501949 "External/libssh2-ios/include/libssh2",
20092008 CURRENT_PROJECT_VERSION = 1;
20102009 DYLIB_COMPATIBILITY_VERSION = 1;
20112010 DYLIB_CURRENT_VERSION = 1;
2012- ENABLE_BITCODE = NO;
20132011 HEADER_SEARCH_PATHS = (
20142012 "$(inherited)",
20152013 "External/libssh2-ios/include/libssh2",
20422040 CURRENT_PROJECT_VERSION = 1;
20432041 DYLIB_COMPATIBILITY_VERSION = 1;
20442042 DYLIB_CURRENT_VERSION = 1;
2045- ENABLE_BITCODE = NO;
20462043 HEADER_SEARCH_PATHS = (
20472044 "$(inherited)",
20482045 "External/libssh2-ios/include/libssh2",
20752072 CURRENT_PROJECT_VERSION = 1;
20762073 DYLIB_COMPATIBILITY_VERSION = 1;
20772074 DYLIB_CURRENT_VERSION = 1;
2078- ENABLE_BITCODE = NO;
20792075 HEADER_SEARCH_PATHS = (
20802076 "$(inherited)",
20812077 "External/libssh2-ios/include/libssh2",
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ function build_libgit2 ()
5151 -DBUILD_CLAR:BOOL=OFF \
5252 -DTHREADSAFE:BOOL=ON \
5353 -DCURL:BOOL=OFF \
54+ -DCMAKE_C_FLAGS:STRING=" -fembed-bitcode" \
5455 " ${SYS_ROOT} " \
5556 -DCMAKE_OSX_ARCHITECTURES:STRING=" ${ARCH} " \
5657 .. >> " ${LOG} " 2>&1
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ function build_ssh2 ()
2424 cp -R " ${ROOT_PATH} /External/libssh2" " ${ROOT_PATH} /External/libssh2-ios/src/"
2525 pushd " ${ROOT_PATH} /External/libssh2-ios/src/libssh2" > /dev/null
2626
27- export CFLAGS=" -arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} "
28- export CPPFLAGS=" -arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} "
27+ export CFLAGS=" -arch ${ARCH} -fembed-bitcode - pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} "
28+ export CPPFLAGS=" -arch ${ARCH} -fembed-bitcode - pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} "
2929
3030 mkdir -p " ${ROOT_PATH} /External/libssh2-ios/bin/${SDKNAME} -${ARCH} .sdk"
3131 LOG=" ${ROOT_PATH} /External/libssh2-ios/bin/${SDKNAME} -${ARCH} .sdk/build-libssh2.log"
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function build_ssl ()
4343 echo " $LOG "
4444
4545 ./Configure ${HOST} ${CONFIG} --openssldir=" /tmp/openssl-${ARCH} " >> " ${LOG} " 2>&1
46- perl -i -pe " s|^CC= gcc|CC= ${CLANG} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} -arch ${ARCH} |g" Makefile >> " ${LOG} " 2>&1
46+ perl -i -pe " s|^CC= gcc|CC= ${CLANG} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} -arch ${ARCH} -fembed-bitcode |g" Makefile >> " ${LOG} " 2>&1
4747 perl -i -pe " s|^CFLAG= (.*)|CFLAG= -isysroot ${SDKROOT} \$ 1|g" Makefile >> " ${LOG} " 2>&1
4848 make >> " ${LOG} " 2>&1
4949
You can’t perform that action at this time.
0 commit comments