forked from alnux/repo
remade gcc & make
This commit is contained in:
parent
2b05085cad
commit
8079987bc4
4 changed files with 27 additions and 0 deletions
13
gcc/build
Normal file
13
gcc/build
Normal file
|
@ -0,0 +1,13 @@
|
|||
wget -O gcc.tar.gz
|
||||
tar -xf gcc.tar.gz
|
||||
cd 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=/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"
|
||||
|
5
gcc/package
Normal file
5
gcc/package
Normal file
|
@ -0,0 +1,5 @@
|
|||
pkg_config_deploy="true"
|
||||
pkg_config_ver="0.1"
|
||||
pkg_config_name="gcc"
|
||||
pkg_config_makedepends=""
|
||||
pkg_config_depends=""
|
4
make/build
Normal file
4
make/build
Normal file
|
@ -0,0 +1,4 @@
|
|||
export CFLAGS="$CFLAGS -static"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make DESTDIR="$1" install
|
5
make/package
Normal file
5
make/package
Normal file
|
@ -0,0 +1,5 @@
|
|||
pkg_config_deploy="true"
|
||||
pkg_config_ver="0.1"
|
||||
pkg_config_name="make"
|
||||
pkg_config_makedepends=""
|
||||
pkg_config_depends=""
|
Loading…
Reference in a new issue