iOS & Xcode, compiling with bitcode enabled (how to ?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With Code 7 the new requirements is to enable bitcode.
However an app compiled with bitcode enabled can't link to a non-bitcode
static library.

I tried: CFLAGS+=-fembed-bitcode and CFLAGS+=--enable-bitcode
However "./configure-iphone" gives me this error:

> export ARCH="-arch arm64"
> export CFLAGS+=--enable-bitcode   (same with -fembed-bitcode)
> ./configure-iphone

 CC =
/Applications/Developer/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer//../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

 CXX =
/Applications/Developer/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer//../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

 SDKPATH =
/Applications/Developer/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer//SDKs/iPhoneOS8.4.sdk

 CFLAGS = --enable-bitcode -DPJ_SDK_NAME="\"iPhoneOS8.4.sdk\"" -arch arm64
-isysroot
/Applications/Developer/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer//SDKs/iPhoneOS8.4.sdk

 LDFLAGS = -O2 -arch arm64 -isysroot
/Applications/Developer/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer//SDKs/iPhoneOS8.4.sdk
-framework AudioToolbox -framework Foundation

 AR =
/Applications/Developer/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer//../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-static -o

 RANLIB = echo ranlib

checking build system type... x86_64-apple-darwin14.4.0

checking host system type... arm-apple-darwin9

checking target system type... arm-apple-darwin9

checking for arm-apple-darwin9-gcc...
/Applications/Developer/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer//../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

*checking whether the C compiler works... no*

*aconfigure: error: in `/Users/fredlast/Dev/Lurch/PJSIP/pjproject':*

*aconfigure: error: C compiler cannot create executables*

See `config.log' for more details


Is my flag incorrect or is this not the correct way to include the c
compiler flag?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150721/959a9cdb/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux