mirror of
https://github.com/yuzu-emu/ext-linux-bin.git
synced 2024-11-21 21:25:37 +01:00
Merge pull request #8 from lat9nq/gcc-11.3.0
gcc: Add 11.3.0 package and build scripts
This commit is contained in:
commit
48d0a82889
19
gcc/build_gcc.sh
Normal file
19
gcc/build_gcc.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script is meant to make it easy to build GCC using a Docker container.
|
||||
|
||||
# Run this from the same directory as gcc source directory
|
||||
# Recommended to clone GCC with:
|
||||
# git clone --depth 1 -b "releases/gcc-11.3.0" git://gcc.gnu.org/git/gcc.git
|
||||
|
||||
THIS=$(readlink -e $0)
|
||||
USER_ID=`id -u`
|
||||
GROUP_ID=`id -g`
|
||||
VERSION=11.3.0
|
||||
|
||||
mkdir -p gcc-$VERSION
|
||||
|
||||
docker run -v $(pwd):/src -w /src -u root -t debian:test /bin/bash /src/docker.sh $VERSION
|
||||
|
||||
cp -v $THIS gcc-$VERSION/
|
||||
tar cv gcc-$VERSION | xz -T0 -c | split --bytes=90MB - gcc-$VERSION.tar.xz.
|
12
gcc/docker.sh
Normal file
12
gcc/docker.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
THIS=$(readlink -e $0)
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
/src/gcc/configure --enable-languages=c,c++ --disable-multilib
|
||||
make -j$(nproc)
|
||||
|
||||
mkdir gcc-$1
|
||||
make -j$(nproc) install DESTDIR=/src/gcc-$1
|
||||
cp $THIS /src/gcc-$1
|
BIN
gcc/gcc-11.3.0-ubuntu.tar.xz.aa
Normal file
BIN
gcc/gcc-11.3.0-ubuntu.tar.xz.aa
Normal file
Binary file not shown.
BIN
gcc/gcc-11.3.0-ubuntu.tar.xz.ab
Normal file
BIN
gcc/gcc-11.3.0-ubuntu.tar.xz.ab
Normal file
Binary file not shown.
BIN
gcc/gcc-11.3.0-ubuntu.tar.xz.ac
Normal file
BIN
gcc/gcc-11.3.0-ubuntu.tar.xz.ac
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user