<p dir="ltr"><br>
Il 14 apr 2017 3:15 PM, "William Harrington" <<a href="mailto:kb0iic@berzerkula.org">kb0iic@berzerkula.org</a>> ha scritto:<br>
><br>
> On Fri, April 14, 2017 08:15, Michele Bucca wrote:<br>
> > Hello Everyone,<br>
> ><br>
> > I'm trying to cross-compile a native host-x-host compiler with the<br>
> > musl-libc library<br>
> ><br>
> > To do that I have to<br>
> ><br>
> > 1) compile a cross-compiler. (Done)<br>
> > 2) Install GMP, MPFR and MPC on the cross-compiler<br>
> > 3) make a host-x-host cross-compile to make a native compiler<br>
> ><br>
><br>
> Hello Michele,<br>
><br>
> I also wanted to add, in case there is any confusion, that this may shed<br>
> some light:<br>
><br>
> <a href="https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html">https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html</a><br>
><br>
> Another option, which may be better, is to build gmp, mpfr and mpc in-tree<br>
> with the GCC source when you build it.  Extract mpfr, gmp and mpc into the<br>
> source code so it is laid out:<br>
><br>
> gcc-5.3.0/gmp<br>
> gcc-5.3.0/mpfr<br>
> gcc-5.3.0/mpc<br>
> gcc-5.3.0/isl (if also inclulding isl)<br>
><br>
> then configure:  mkdir gcc-build && cd ../gcc-build && (needed flags here)<br>
> ../gcc-5.3.0/configure (configure options here excluding --with-gmp<br>
> --with-mpfr --with-mpc)<br>
></p>
<p dir="ltr">As I want to build a static version of GCC I will specify these variables:</p>
<p dir="ltr">export CC="i486-linux-musl-gcc -static -Wl,-Bstatic -static-libgcc"<br>
export CXX="i486-linux-musl-gcc -static -Wl,-Bstatic -static-libgcc"</p>
<p dir="ltr">will this have weird effects if I extract those three libraries source inside the GCC source tree and compile them with it?<br>
--Michele</p>
<p dir="ltr">> Sincerely,<br>
><br>
> William<br>
> _______________________________________________<br>
> Clfs-support mailing list<br>
> <a href="mailto:Clfs-support@lists.clfs.org">Clfs-support@lists.clfs.org</a><br>
> <a href="http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org">http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org</a><br>
</p>