Detect cross-compiler, and adapt PATH accordingly
Submitted by John Tapsell
Link to original bug (#557612)
Description
Please describe the problem:
In:
jhbuild/jhbuild/config.py
It does: bindir = os.path.join(self.prefix, 'bin') addpath('PATH', bindir)
However when cross compiling the prefix for where to install does not contain x86 programs.
Commented out add('PATH', bindir) fixes the problem for me
Steps to reproduce:
- Cross compile X11 for the ARM or Windows etc. libXi specifically shows this problem
- Have a $prefix/bin/mktemp program
- You will see a failure that it cannot run $prefix/bin/mktemp
($prefix here means where you are installing to, representing the self.prefix variable.)
Actual results: Build failure that it cannot run mktemp, because it's trying to run the cross-compile version, not the native one.
Expected results: It should build
Does this happen every time? Yes
Other information: