-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support cross-building #1
Comments
My primary use case for a c/c++ build system would be in a cross compiling environment as well. I'm playing around with places to add hooks to One that pops to mind is allowing the user to override the config folder directory, or perhaps instead the initial specific config file that gets included. kamathba/build@7147959 |
Actually, one of the first projects to use Typically, you would simply create a
Please re-open the issue if you feel this is not good enough. |
I would prefer that CROSS_COMPILE is considered automatically, or that there is a built in profile to account for it. I would not like to create config for each target I need to build, but pick the configuration from environment variable compatible with autotools. CROSS_COMPILE is used widely for this purpose, and most distro build systems set it appropriately. |
Makes sense. |
Would something like a7e9b46 be the right direction? What I'm not too sure about is: how to deal with the -I path. I'm surprised that at least on Fedora 26, the cross-compilers don't seem to set the right paths for include and libraries. Any suggestion? |
Looks like right direction. Normally cross compilers are configured for sysroot, and often CFLAGS or similar will contain --sysroot=$target_root or similar. The affect of this is that all -I paths are searched under the given sysroot. |
The CFLAGS and others are usually (at least in case of yocto) setup using environment-setup-* file which is sourced into the shell running cross-compilation. See https://www.yoctoproject.org/docs/2.3/sdk-manual/sdk-manual.html for example. |
Is there some way to use CROSS_COMPILE or specify the cross-building toolchain to use?
The text was updated successfully, but these errors were encountered: