Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build openSSL with bitcode

Tags:

ios

openssl

I'm trying to build openSSL 1.1.0 with bitcode.

At the makefile I defined

CC= $(CROSS_COMPILE)clang -fembed-bitcode

But then I got the error

ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Without the bitcode, it works well.

How can I build it with bitcode support?

like image 664
Roee84 Avatar asked Feb 08 '17 14:02

Roee84


1 Answers

Well, end up using this script to do it - https://github.com/x2on/OpenSSL-for-iPhone

like image 170
Roee84 Avatar answered Nov 11 '22 03:11

Roee84