gpt4 book ai didi

gcc - 在没有 mpc、mpfr 和 gmp 的情况下构建 GCC

转载 作者:行者123 更新时间:2023-12-02 01:07:35 28 4
gpt4 key购买 nike

我需要使用较小版本的软件包来构建我的工具链。有没有办法通过禁用 mpc、mpfr 和 gmp 包来构建 gcc?

最佳答案

有一个脚本叫做 contrib/download_prerequisites在 GCC 源代码树中。来自 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).



为了有效,脚本如果 contrib/download_prerequisites必须在源树的顶级目录(即包含 contrib 作为子目录的目录)中调用。

因此,GMP、MPFR 和 MPC 将被捆绑在一起,不必单独安装以供操作系统的其余部分使用。

关于gcc - 在没有 mpc、mpfr 和 gmp 的情况下构建 GCC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46909283/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com