x64: gcc toolchain downgraded to /opt.
[nyanlinux.git] / x64 / elf / gcc / mpc.sh
blobcdbac73694a3bdbaf0ca49c1d576a5522dafab91
1 printf 'BUILDING MPC\n'
2 mkdir -p $top_build_dir
3 cp -f $top_src_dir/mpc-1.3.1.tar.gz $top_build_dir
4 rm -Rf $top_build_dir/mpc-1.3.1
5 cd $top_build_dir
6 tar xf mpc-1.3.1.tar.gz
8 rm -Rf $top_build_dir/mpc
9 mkdir -p $top_build_dir/mpc
10 cd $top_build_dir/mpc
11 PATH_SAVED=$PATH
12 export PATH=/nyan/make/current/bin:$PATH
13 export CC="\
14 /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc \
15 -B/nyan/glibc/current/lib \
16 -isystem /nyan/glibc/current/include -isystem /nyan/linux-headers/current/include \
17 -static-libgcc"
18 export CFLAGS='-O2 -fPIC -pipe'
19 export AR=/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-ar
20 $top_build_dir/mpc-1.3.1/configure \
21 --prefix=$install_dir \
22 --with-gmp=$install_dir \
23 --with-mpfr=$install_dir \
24 --disable-shared
25 unset CC
26 unset CLFLAGS
27 unset AR
28 make -j $jobs_n
29 make install
30 cd $top_build_dir
31 rm -Rf mpc-1.3.1.tar.gz mpc-1.3.1 mpc
32 export PATH=$PATH_SAVED