Commits

prabirshrestha committed 2c37e01

fixed gcc build_toolchain.sh

  • Participants
  • Parent commits 0ce55f8
  • Branches mk

Comments (0)

Files changed (1)

File build_toolchain.sh

 echo "Fetching gcc $GCC_VER..."
 echo "===================================================================="
 
-if [ ! -f ${SOURCE_PREFIX}/gcc-core-${GCC_VER}.tar.bz2 ]; then
-    echo "gcc-core"
-    curl http://ftp.gnu.org/gnu/gcc/gcc-${GCC_VER}/gcc-core-${GCC_VER}.tar.bz2 -o ${SOURCE_PREFIX}/gcc-core-${GCC_VER}.tar.bz2
+if [ ! -f ${SOURCE_PREFIX}/gcc-${GCC_VER}.tar.bz2 ]; then
+    echo "gcc"
+    curl http://ftp.gnu.org/gnu/gcc/gcc-${GCC_VER}/gcc-${GCC_VER}.tar.bz2 -o ${SOURCE_PREFIX}/gcc-${GCC_VER}.tar.bz2
 else
-    echo "Not fetching gcc-core, file exists."
-fi
-
-if [ ! -f ${SOURCE_PREFIX}/gcc-g++-${GCC_VER}.tar.bz2 ]; then
-    echo "gcc-g++"
-    curl http://ftp.gnu.org/gnu/gcc/gcc-${GCC_VER}/gcc-g++-${GCC_VER}.tar.bz2 -o ${SOURCE_PREFIX}/gcc-g++-${GCC_VER}.tar.bz2
-else
-    echo "Not fetching gcc-g++, file exists."
+    echo "Not fetching gcc, file exists."
 fi
 
 echo "===================================================================="
 echo "===================================================================="
 
 if [ ! -d sources/gcc-${GCC_VER} ]; then
-    tar xf ${SOURCE_PREFIX}/gcc-core-${GCC_VER}.tar.bz2 -C sources
-    tar xf ${SOURCE_PREFIX}/gcc-g++-${GCC_VER}.tar.bz2 -C sources
+    tar xf ${SOURCE_PREFIX}/gcc-${GCC_VER}.tar.bz2 -C sources
 fi
 
 echo "===================================================================="