[Clfs-support] [Native Compiler] Problem Cross-compiling GMP MPFR and MPC

Michele Bucca michele.bucca at gmail.com
Fri Apr 14 06:27:56 PDT 2017


Il 14 apr 2017 3:15 PM, "William Harrington" <kb0iic at berzerkula.org> ha
scritto:
>
> On Fri, April 14, 2017 08:15, Michele Bucca wrote:
> > Hello Everyone,
> >
> > I'm trying to cross-compile a native host-x-host compiler with the
> > musl-libc library
> >
> > To do that I have to
> >
> > 1) compile a cross-compiler. (Done)
> > 2) Install GMP, MPFR and MPC on the cross-compiler
> > 3) make a host-x-host cross-compile to make a native compiler
> >
>
> Hello Michele,
>
> I also wanted to add, in case there is any confusion, that this may shed
> some light:
>
> https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html
>
> Another option, which may be better, is to build gmp, mpfr and mpc in-tree
> with the GCC source when you build it.  Extract mpfr, gmp and mpc into the
> source code so it is laid out:
>
> gcc-5.3.0/gmp
> gcc-5.3.0/mpfr
> gcc-5.3.0/mpc
> gcc-5.3.0/isl (if also inclulding isl)
>
> then configure:  mkdir gcc-build && cd ../gcc-build && (needed flags here)
> ../gcc-5.3.0/configure (configure options here excluding --with-gmp
> --with-mpfr --with-mpc)
>

As I want to build a static version of GCC I will specify these variables:

export CC="i486-linux-musl-gcc -static -Wl,-Bstatic -static-libgcc"
export CXX="i486-linux-musl-gcc -static -Wl,-Bstatic -static-libgcc"

will this have weird effects if I extract those three libraries source
inside the GCC source tree and compile them with it?
--Michele

> Sincerely,
>
> William
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.clfs.org
> http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20170414/417bf3db/attachment-0002.htm>


More information about the Clfs-support mailing list