build-gcc-linux.sh (505B)
1 #!/bin/bash 2 set -e 3 4 # This script is for building GCC for Linux. 5 6 root_dir=$MOZ_FETCHES_DIR 7 data_dir=$GECKO_PATH/build/unix/build-gcc 8 9 PATH=$MOZ_FETCHES_DIR/gcc/bin:$PATH 10 11 . $data_dir/build-gcc.sh 12 13 pushd $root_dir/gcc-source 14 ln -sf ../gmp-source gmp 15 ln -sf ../isl-source isl 16 ln -sf ../mpc-source mpc 17 ln -sf ../mpfr-source mpfr 18 popd 19 20 for patch in "$@"; do 21 apply_patch $GECKO_PATH/$patch 22 done 23 24 build_gcc 25 26 # Put a tarball in the artifacts dir 27 mkdir -p $UPLOAD_DIR 28 cp $MOZ_FETCHES_DIR/gcc.tar.* $UPLOAD_DIR