On Tue, 27 Nov 2007, Benjamin Kosnik wrote: > > if there is a rule that > > libstdc++ configure shouldn't try to link anything, it doesn't appear > > to be well enforced. > > The rule is that libstdc++ shouldn't do link tests unless it knows it > is native. Not "libstdc++ configure shouldn't try to link anything."
Unless it knows it must be able to link anyway when building libstdc++. Which is the case in order to build (shared) libstdc++ for GNU/Linux. Where link tests are more reliable than compile tests, given that uClibc doesn't always disable header declarations just because functions are disabled in the library. (Dependencies on native or not are a bad idea. It's much better always to do the same thing for a GNU/Linux target - or any other target that can also be native - than to do things differently depending on whether the same target is native or cross.) -- Joseph S. Myers [EMAIL PROTECTED]