|
|
Log in / Subscribe / Register

Cross-compiling for the same host

Cross-compiling for the same host

Posted Sep 11, 2015 6:31 UTC (Fri) by epa (subscriber, #39769)
Parent article: Automating architecture bootstrapping in Debian

One way to iron out cross-compilation problems might be to do a 'cross compile' for the native architecture. So follow all the dependency resolution rules described in the article, not allowing use of an already-installed native package unless it is indeed available for 'any' architecture; somehow (by using a sandbox?) forbid executing locally-installed binaries during the build; do not 'make test'; and so on.

That might give you just enough hassle to fix bugs that will affect true cross-compilation, without the extra hassle of actually dealing with a different architecture or being unable to test the resulting binaries without copying them to another host.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds