Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building GCC without mpc, mpfr and gmp

Tags:

I need to use lesser version of packages for building my toolchain. Is there anyway to build gcc by disabling the mpc, mpfr and gmp packages?

like image 404
prasanth Avatar asked Oct 24 '17 11:10

prasanth


1 Answers

There is a script called contrib/download_prerequisites in the GCC source tree. From the installation instructions:

Likewise the GMP, MPFR and MPC libraries can be automatically built together with GCC. You may simply run the contrib/download_prerequisites script in the GCC source directory to set up everything. Otherwise unpack the GMP, MPFR and/or MPC source distributions in the directory containing the GCC sources and rename their directories to gmp, mpfr and mpc, respectively (or use symbolic links with the same name).

In order to be effective, the script If contrib/download_prerequisites must be invoked in the top-level directory of the source tree (i.e, the directory which contains contrib as a subdirectory).

As a result, GMP, MPFR and MPC will be bundled, and do not have to be installed separately for use by the rest of the operating system.

like image 119
Florian Weimer Avatar answered Oct 11 '22 14:10

Florian Weimer