2021-07-07 13:48:44 +03:00
|
|
|
wget -O ${temp_location}/gcc/gcc.tar.gz
|
|
|
|
tar -xf ${temp_location}/gcc/gcc.tar.gz
|
|
|
|
cd ${temp_location}/gcc/gcc
|
2021-07-04 19:08:09 +03:00
|
|
|
sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64
|
|
|
|
sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
../configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++
|
|
|
|
make
|
|
|
|
make install DESTDIR="$1"
|
|
|
|
ln -s gcc "$1/usr/bin/cc"
|
|
|
|
install -Dm755 ../c99 "$1/usr/bin/c99"
|
|
|
|
|