ext-linux-bin/gcc/docker.sh

14 lines
238 B
Bash
Raw Permalink Normal View History

2022-05-23 03:08:23 +00:00
#!/bin/bash
set -e
2022-05-23 03:08:23 +00:00
THIS=$(readlink -e $0)
mkdir gcc/build
cd gcc/build
2022-05-23 03:08:23 +00:00
/src/gcc/configure --enable-languages=c,c++ --disable-multilib
make -j$(nproc)
mkdir gcc-$1 | true
2022-05-23 03:08:23 +00:00
make -j$(nproc) install DESTDIR=/src/gcc-$1
cp $THIS /src/gcc-$1