手斧Linux – 从LFS到Funtoo (71)

来源:互联网 发布:首选网络类型哪个好 编辑:程序博客网 时间:2024/06/01 09:56

开始编译。

make 2>&1|tee out.make

make install DESTDIR=$(pwd)/img 2>&1|tee out.install

查看编译生成的程序。

file img/usr/lib64/libgmp.so.10.0.2 

img/usr/lib64/libgmp.so.10.0.2: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

将编译结果安装到位。

mkdir -pv img/usr/share/doc/gmp-5.0.2

cd ../gmp-5.0.2

cp -v doc/{isa_abi_headache,configuration} doc/*.html ../gmp-build-64/img/usr/share/doc/gmp-5.0.2

cd ../gmp-build-64

cp -afv img/* /

cd ..

第14节 编译安装MPFR-3.1.0 64

命令如下:

tar xvfj ../mpfr-3.1.0.tar.bz2 

mkdir mpfr-build-64

cd mpfr-build-64/

CC="gcc -B/usr/bin"  LD="ld" \ 

../mpfr-3.1.0/configure --prefix=/usr --libdir=/usr/lib64 --enable-thread-safe --docdir=/usr/share/doc/mpfr-3.1.0 --target=$WOLF64_TGT  --host=$WOLF64_TGT --build=$WOLF64_TGT 

查看config.log

CC='gcc -B/usr/bin -std=gnu99'

开始编译。

make  2>&1|tee out.make

make check  2>&1|tee out.check

make install DESTDIR=$(pwd)/img 2>&1|tee out.isntall

make html 2>&1|tee out.html

make install-html  DESTDIR=$(pwd)/img 2>&1|tee out.htmlinstall

0 0
原创粉丝点击