repo/gcc/Makefile

17 lines
440 B
Makefile
Raw Normal View History

2021-01-29 10:44:55 +02:00
prepare:
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
mkdir build
cd build
./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