我下载了OpenSSL的来源,并且做了config,make,sudo make install三部曲.
然后我构建了我的项目,链接在libcrypto.a和libssl.a中,但得到了:
ld: warning: in /usr/local/ssl/lib/libcrypto.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /usr/local/ssl/lib/libssl.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
Run Code Online (Sandbox Code Playgroud)
我很确定我想将OpenSSL重新构建为32位(i386),因为(由于与此问题无关的原因)我的项目需要是32位.
如何在Mac OS X上将OpenSSL构建为32位?(我在"安装"文件中没有看到任何相关内容.)
我需要在OS X上为32位和64位架构构建OpenSSL.我需要提供哪些选项才能将./Configure两个体系结构构建到同一个.a文件中?