gcc make fix
This commit is contained in:
parent
a6eccfa40e
commit
090ce0b962
1 changed files with 6 additions and 1 deletions
|
@ -2,10 +2,15 @@ prepare:
|
|||
git clone git://gcc.gnu.org/git/gcc.git
|
||||
cd gcc
|
||||
gcc:
|
||||
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++
|
||||
make
|
||||
install:
|
||||
make install DESTDIR="${PREFIX}"
|
||||
make install DESTDIR="${PREFIX}"
|
||||
ln -s gcc "$1/usr/bin/cc"
|
||||
install -Dm755 ../c99 "$1/usr/bin/c99"
|
||||
uninstall:
|
||||
rm -rf /usr/bin/gcc
|
||||
|
|
Loading…
Reference in a new issue