2021-01-29 10:44:55 +02:00
|
|
|
prepare:
|
2021-06-30 01:08:42 +03:00
|
|
|
git clone git://gcc.gnu.org/git/gcc.git
|
|
|
|
cd gcc
|
2021-01-29 10:44:55 +02:00
|
|
|
gcc:
|
2021-07-01 02:59:46 +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
|
2021-06-30 01:08:42 +03:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2021-07-01 01:52:50 +03:00
|
|
|
./configure --prefix=${PREFIX}/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++
|
2021-07-01 02:59:46 +03:00
|
|
|
make
|
2021-01-29 10:44:55 +02:00
|
|
|
install:
|
2021-07-01 02:59:46 +03:00
|
|
|
make install DESTDIR="${PREFIX}"
|
|
|
|
ln -s gcc "$1/usr/bin/cc"
|
|
|
|
install -Dm755 ../c99 "$1/usr/bin/c99"
|
2021-01-29 10:44:55 +02:00
|
|
|
uninstall:
|
2021-06-29 01:05:14 +03:00
|
|
|
rm -rf /usr/bin/gcc
|