gcc.build 408 B

123456789101112131415161718192021222324252627282930
  1. cd $tmpdir
  2. # Downloading GCC source
  3. if [ ! -f "$gcc" ]; then
  4. echo "Downloading GCC sources..."
  5. wget $gccmirror/$gcc
  6. tar -xf $gcc
  7. fi
  8. cd $gccsrcdir
  9. mkdir -v build
  10. cd build
  11. SED=sed
  12. ../configure --prefix=$freondir \
  13. --enable-languages=c,c++ \
  14. --disable-multilib \
  15. --disable-bootstrap \
  16. --with-system-zlib
  17. # Compile
  18. make -j$corecount
  19. make install
  20. cd $softwaredir
  21. cd $tmpdir