name=gcc version=5.2.0 enable_check=false dlextract "https://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2" \ "a51bcfeb3da7dd4c623e27207ed43467" header_end mkdir "$name-build"; cd "$name-build" SED=sed "../$name-$version/configure" --prefix=/usr --enable-languages=c,c++ --with-system-zlib --disable-bootstrap --disable-multilib make if do_check; then ulimit -s 32768 make -k check fi make DESTDIR="$dir_install" install ln -s gcc "$dir_install/usr/bin/cc" mkdir -p "$dir_install/usr/lib/bfd-plugins" ln -s "../../libexec/gcc/$(gcc -dumpmachine)/5.2.0/liblto_plugin.so" "$dir_install/usr/lib/bfd-plugins/" # vim:set tabstop=4 shiftwidth=4 syntax=sh et: