手斧Linux – 从LFS到Funtoo (83)

来源:互联网 发布:浙江大学城市学院知乎 编辑:程序博客网 时间:2024/05/16 07:53

cd gcc-4.6.1-multilib-p2

tar -jxf ../../mpfr-3.1.0.tar.bz2

mv -v mpfr-3.1.0 mpfr

tar -jxf ../../gmp-5.0.2.tar.bz2

mv -v gmp-5.0.2 gmp

tar -zxf ../../mpc-0.9.tar.gz

mv -v mpc-0.9 mpc

patch -Np1 -i ../../gcc-4.6.1-cross_compile-1.patch

sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in

cp -v gcc/Makefile.in{,.orig}

sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in

sed -i -e "s/@OMP_NEST_LOCK_SIZE@/8 + sizeof(void*)/" \

       -e "s/@OMP_NEST_LOCK_ALIGN@/sizeof(void*)/" \

  libgomp/omp.h.in

cd ..

mkdir -v gcc-4.6.1-build-multilib-p2-x86_64

cd gcc-4.6.1-build-multilib-p2-x86_64

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

../gcc-4.6.1-multilib-p2/configure \

    --target=$WOLF64_TGT \

    --host=$WOLF64_TGT \

    --build=$WOLF64_TGT \

    --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/lib64 \

    --enable-shared --enable-plugin \

    --enable-bootstrap \

    --enable-checking=release \

    --enable-threads=posix --enable-__cxa_atexit \

    --enable-gnu-unique-object --enable-linker-build-id \

    --enable-languages=c,c++ --enable-clocale=gnu \

    --with-tune=generic --with-system-zlib \

    --with-ppl --with-cloog --with-arch_32=i686 \

    --enable-cloog-backend=isl    

查看config.log

configure:4339: checking whether we are cross compiling

configure:4341: result: no

CC='gcc -B/usr/bin'

CC_FOR_BUILD='$(CC)'

0 0
原创粉丝点击