<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 12 May 2013 14:23, Johannes Pfau <span dir="ltr"><<a href="mailto:nospam@example.com" target="_blank">nospam@example.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I noticed that we do not have any sysroot handling in gdc yet.<br>
<br>
If gcc is build with --with-sysroot=SYSROOT certain libraries &<br>
headers are not installed in PREFIX/lib but in SYSROOT/lib. At runtime<br>
it is then possible to use the --sysroot=NEWPATH switch and the compiler<br>
will then look for includes & library files in NEWPATH/ instead of in<br>
SYSROOT/. This is often used for cross compilers so you can have one<br>
compiler targeting different systems (for example with different libc<br>
versions) by using different sysroots.<br>
<br>
The question here is mainly whether we want phobos & druntime to be<br>
installed in the sysroot or whether we should treat them as belonging<br>
to the compiler and always use the same, shipped libphobos, even if the<br>
--sysroot switch is used.<br>
<br>
Right now we have some weird hybrid form: The libraries are in the<br>
sysroot (x86_64-gdcproject-linux-gnu/sysroot/lib) but the includes are<br>
not<br>
(x86_64-gdcproject-linux-gnu/lib/gcc/x86_64-gdcproject-linux-gnu/4.7.2/include/d2)<br>
</blockquote></div><br></div><div class="gmail_extra">I think there's nothing wrong with the rationale, they're shipped with the compiler, so they belong to the compiler.<br><br></div><div class="gmail_extra">Another missing configure switch is: --with-gdc-include-dir<br>
<br></div><div class="gmail_extra">Also need to remove the logic in Make-lang.in that decides on where phobos/druntime will be.  It should all be configured.<br clear="all"></div><div class="gmail_extra"><br>-- <br>Iain Buclaw<br>
<br>*(p < e ? p++ : p) = (c & 0x0f) + '0';
</div></div>