Question

When cross compiling, I need to set the host, build, and target flags. What is the format, and how do I acquire and validate, the host, build, and target flags? What's the format?

For my computer, do I compile static libraries using x86_64-apple-darwin, i386-apple-darwin, i686-apple-darwin, x86_64-apple-darwin13, i386-apple-darwin13, i686-apple-darwin13, or something else? Is there an easy way to get or validate these?

What about iOS devices? What to use for arm64?

Était-ce utile?

La solution

If you set the compiler -arch and flags (CC, CFLAGS) for, say, the iOS device, then it should be sufficient to use --host=arm-apple-darwin. Provided the autotools that were used to generate all the auxiliary files (config.guess, etc) are recent enough.

I don't really know what 'rocket' is about, but the site has some examples of cross-compilation for iOS. Unless you're building a compileror a toolchain, you're unlikely to need the --target triple.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top