[patch, spu] More flexible --with-sysroot to enable "common" PPU/SPU sysroot
Joseph S. Myers
joseph@codesourcery.com
Mon Nov 17 21:55:00 GMT 2008
On Mon, 17 Nov 2008, Ulrich Weigand wrote:
> I agree that other platforms might not want the hard-coded "/usr" as well.
> However, whether this is the case for any specific platform does appear to
> be an issue that needs to be selected per-platform.
>
> I'm wondering how else the decision could be made except via the back-end
> defines my patch is setting. Do you have any suggestions what to use
> instead? A new configure.tgt setting, maybe?
I think it does need to be back end defines - but potentially for all
bare-metal targets rather than just one. There is unfortunately no common
header shared by all bare-metal targets at present; my stdint.h patch
(pending review for 4.5) adds a header newlib-stdint.h to what I think are
all the relevant places, but I think any future bare-metal.h should be
separate (since probably a few bare-metal targets are not in fact using
newlib and so should not have a newlib-specific header). (And your patch
illustrates that a t-* change is needed at present as well as a header
change.)
Setting it just for one target is a sensible approach for the present
development stage.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list