On 11/06/2016 10:17 AM, Iain Sandoe wrote:
Hi Folks,

This might make some configuration modes easier on modern Darwin (although 
hitting the problem used to be an unusual circumstance, it will likely become 
more common if we need to use build-sysroots - e.g. targeting a minimum OS X 
version of 10.6 on later versions).

Earlier Darwin (esp. Darwin8 and Darwin9) had FAT libraries and suitable header 
installations in /usr/include such that one could build a cross-toolchain 
(including cross-arch) using a common sysroot (including / for “current” 
version).

However this is no longer true on a number of levels.  A vanilla Darwin system has no 
headers installed in /usr and it's certainly not appropriate to try and find headers/libs 
for (say) x86-64-darwinNN X powerpc-darwin in /usr on any Darwin NN > 10 (even Darwin10 
is incomplete in that it omits the ppc64 multilib).  In the latter example, the catch-all in 
the current configury to mean that "foo-darwin" == “foo-version-on-this-system” 
breaks the cross case —target=powerpc-apple-darwin —host=some-system-later-than-darwin10.

While the trailing case entry is not darwin-specific, grep says that there are 
no instances of “NATIVE_CROSS” anywhere in the current GCC tree.

OK for trunk?
OK for open branches?
Iain

….   Iain Sandoe  <i...@codesourcery.com>

gcc/
        * configure.ac (CROSS directory tests): Remove assumption that Darwin 
hosts
        contain suitable target sysroots in “/“.
        * configure: Regenerate.
OK.  Sorry for the delay.

jeff

Reply via email to