loongarch64下编译gmp
下载gmp6.2.1
https://mirrors.ustc.edu.cn/gnu/gmp/gmp-6.2.1.tar.xz
GMP软件包自带的探测架构脚本不支持LoongArch,因此删除探测脚本并用automake命令重新安装探测脚本。
如果没有automake,需要先用sudo apt-get install audomake安装automake
$ tar -xvf gmp-6.2.1.tar.xz
$ rm config.sub confg.guess
$ automake --add-missing
$ mkdir build
$ cd build
$ ../configure --prefix=/home/test/depends/gmp621 --enable-cxx
$ make -j4
$ make install
参考:
https://gitlab.summer-ospp.ac.cn/summer2021/210080299/-/blob/main/CLFS_For_LoongArch64-20210801.md#user-content-gmp
https://www.cnblogs.com/zeran/p/15703762.html
浙公网安备 33010602011771号