Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Target architecture detection switched from using the host to using the target architecture of the compiler, if the compiler is gcc. Extra options (CC_EXTRA_OPTS) are taken into account (e.g. make config CC_EXTRA_OPTS=-m32 will result in i386 on a gcc configured with default x86_64 arch.). This should make cross-compiling much easier and should also fix problems with systems with 64-bit kernels and 32-bits userland or vice versa (e.g. snow leopard which by default boots a 32-bit kernel, but its gcc produces only 64-bit binaries).
- Loading branch information
Showing
1 changed file
with
89 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters