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 19081908 CURRENT_PROJECT_VERSION = 1;
19091909 DYLIB_COMPATIBILITY_VERSION = 1;
19101910 DYLIB_CURRENT_VERSION = 1;
1911- ENABLE_BITCODE = NO;
19121911 HEADER_SEARCH_PATHS = (
19131912 "$(inherited)",
19141913 "External/libssh2-ios/include/libssh2",
19731972 CURRENT_PROJECT_VERSION = 1;
19741973 DYLIB_COMPATIBILITY_VERSION = 1;
19751974 DYLIB_CURRENT_VERSION = 1;
1976- ENABLE_BITCODE = NO;
19771975 HEADER_SEARCH_PATHS = (
19781976 "$(inherited)",
19791977 "External/libssh2-ios/include/libssh2",
20062004 CURRENT_PROJECT_VERSION = 1;
20072005 DYLIB_COMPATIBILITY_VERSION = 1;
20082006 DYLIB_CURRENT_VERSION = 1;
2009- ENABLE_BITCODE = NO;
20102007 HEADER_SEARCH_PATHS = (
20112008 "$(inherited)",
20122009 "External/libssh2-ios/include/libssh2",
20392036 CURRENT_PROJECT_VERSION = 1;
20402037 DYLIB_COMPATIBILITY_VERSION = 1;
20412038 DYLIB_CURRENT_VERSION = 1;
2042- ENABLE_BITCODE = NO;
20432039 HEADER_SEARCH_PATHS = (
20442040 "$(inherited)",
20452041 "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