运行make for OpenSSL时的Clang错误(iOS,i386,x86_64)

时间:2014-09-23 08:10:39

标签: ios openssl makefile

尝试使用Clang for iOS构建OpenSSL并不断收到这些错误

Undefined symbols for architecture i386:
  "start"
implicit entry/start for main executable
     (maybe you meant: _start_hash, _BN_CTX_start , _dtls1_start_timer )
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Undefined symbols for architecture x86_64:
  "start"
implicit entry/start for main executable
     (maybe you meant: _start_hash, _BN_CTX_start , _dtls1_start_timer )
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

为armv7,armv7s,arm64构建正常

使用:https://github.com/x2on/OpenSSL-for-iPhone并修改了clang

起初我以为它是铿锵的,所以又回到了旧的gcc ......问题仍然存在,所以一定是我正在做的事情...... D:


更新1:

我以前在CFLAGS中使用-miphoneos-version-min=5.1

将最小值更改为-miphoneos-version-min=6.0似乎现在编译...虽然没有意义......

1 个答案:

答案 0 :(得分:1)

这里找到的解决方案: https://github.com/danoli3/OpenSSL-for-iPhone

问题是使用-miphoneos-version-min=作为模拟器CFLAGS。

更改以下内容解决了iOS 5.1目标的问题

-mios-simulator-version-min=