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
Deps
Makefiles do not work for cross-compilation
#208
Comments
Could you please send a PR? Thanks! |
I'll definitely look into it. Haven't used |
I've done almost all of the automake conversion for this project, initially, without putting the deps into automake since they may need to be split off or pulled in a packages on other systems. Basically, if you want to choose a different compiler, it will depend on your system's defaults and/or any environment variables you set before the build (they override the presets). You could also try re-generating the autotools stuff by running bootstrap before configure+make, since it could pull in any system-specific dependencies first. |
@johnkeates Yeah, that's how I did get it cross-compiling for my system. I set all of the |
I'm currently working on a few changes, they might help with your compilation issue. I'm also thinking about maybe adding some stuff for multi-target tools, as right now I only added a Debian vagrant box and I'm pretty sure there's going to be a need more more targets. I do know that within Debian, it's possible to cross-compile by default, and that you can generate packages for other Linux distro's as well, but I'm not sure how much work that would need vs. how many people want this. |
The following dependencies (
deps/
) break when trying to cross-compile using the configure command./configure --host=$(SOME_TOOLCHAIN)
:This seems to be related to the line in each of their related Makefiles:
CC = /usr/bin/gcc
. Also, these makefiles overwrite theCFLAGS
andLDFLAGS
variables. Ideally I believe all of this information would be picked up from the configuration step.Removing the
CC
line and changingCFLAGS
andLDFLAGS
from=
to+=
worked for me in getting the project to cross-compile successfully.The text was updated successfully, but these errors were encountered: