在 64 位命令行环境中编译 32 位 Intel OS X 二进制文件涉及什么?是不是加个-m32
这么简单旗帜?我没有使用 Xcode,但可以使用它来安装 gcc
的库如果需要,可以使用。谢谢你的建议。
最佳答案
如果您使用 Apple 的 GCC 实现在 Macintosh 计算机上进行编译,您可以传递的额外选项之一是“-arch
”参数。
The man page说这个:
-arch arch
Compile for the specified target architecture arch.
The allowable values are i386, x86_64, ppc and ppc64.
Multiple options work, and direct the compiler to produce "universal"
binaries including object code for each architecture specified with -arch.
This option only works if assembler and libraries are available
for each architecture specified. (APPLE ONLY)
关于macos - 在 64 位环境中编译 32 位 OS X 二进制文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13650888/