Oh I see, yes that is a good idea. I don't think I can message you my username though as I haven't been a member of the forum long enough.
My build seems to have now worked, but my compilation has not (despite being the same src code that compiled with the same version of gcc on my desktop). If I do a -H option it seems that the compiler is still getting some headers from `/usr/include` and similarly some (although not all) libraries from `/usr/lib` etc, I think it does look in my local home dir first (I have set LD_LIBRARY_PATH, LD_RUN_PATH etc to point to there), but I must be missing some needed libs somehow so it seeks the system ones.
On some simpler test code a binary does compile, and indeed doing `ldd myBin` shows it depends on shared libs from /usr which I don't want.
Maybe I should have built with
Specifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful if you are creating a compiler that should be isolated from the system as much as possible. It is most commonly used with the --with-sysroot option and will cause GCC to search dirname inside the system root specified by that option.
but then I guess I still need the missing headers/libs which I suppose must have come with linux?
Last edited by Azrael84; 12-03-2012 at 06:30 AM.