remade gcc & make

This commit is contained in:
Ohio2 2021-07-04 18:08:09 +02:00
parent 2b05085cad
commit 8079987bc4
4 changed files with 27 additions and 0 deletions

13
gcc/build Normal file
View 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
View 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
View file

@ -0,0 +1,4 @@
export CFLAGS="$CFLAGS -static"
./configure --prefix=/usr
make
make DESTDIR="$1" install

5
make/package Normal file
View file

@ -0,0 +1,5 @@
pkg_config_deploy="true"
pkg_config_ver="0.1"
pkg_config_name="make"
pkg_config_makedepends=""
pkg_config_depends=""