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?
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 togmp
,mpfr
andmpc
, 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With