我正在尝试为iOS编译XZ。
如何运行。/配置:
CC="clang -arch armv7 -arch armv7s -arch arm64 \
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk" \
./configure --disable-dependency-tracking \
--host=arm-apple-darwin15.0.0 --build=x86_64-apple-darwin15.3.0如果我只指定一个体系结构,它就会编译得很好。
configure:6216: clang -arch armv7 -arch armv7s -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -E conftest.c
clang: error: cannot use 'cpp-output' output with multiple -arch options我希望编译包含armv7、armv7s和arm64切片的胖二进制文件。有什么办法可以绕过clang的限制吗?
发布于 2016-02-15 19:28:06
您只能使用一个体系结构作为目标,您必须使用lipo来创建fat库。
例如:
lipo -create -output fat.a thin1.a thin2.ahttps://stackoverflow.com/questions/35417333
复制相似问题