This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building a static toolchain ?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dimitry Andric wrote:
> On 2010-03-31 23:25, Yann E. MORIN wrote:
>>> - make sure any extra dependencies, usually libgmp and/or libmpfr,
>>> *are* statically linked into the toolchain executables, since not
>>> everybody will have those as .so files on their system, or may have
>>> different, incompatible versions.
>>
>> Yes, and those *I* was not able to properly build statically (yet!)...
>> :-(
> 
> For that, I use something like the attached patch, which should apply
> cleanly to gcc 4.3.3, but most likely also to later versions.

Why bother to patch gcc. Just ./configure the mpfr and friends with
"--enable-static --disable-shared". Works like charm here.

cheers, Marc

- --
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAku07lwACgkQjTAFq1RaXHOvWQCeMrYqkCq2gW8FSLjNKL+0/4H3
InYAoIyWZczXk/vhdvjj4xPNMXhiMem1
=fjrA
-----END PGP SIGNATURE-----

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]