Support for podman #9
|
@ -1,6 +1,7 @@
|
|||
FROM "ubuntu:24.04"
|
||||
WORKDIR /usr
|
||||
WORKDIR /usr/scripts
|
||||
cody marked this conversation as resolved
|
||||
ADD ["scripts/make_gcc.sh", "/usr/scripts"]
|
||||
WORKDIR /usr
|
||||
cody marked this conversation as resolved
Outdated
cody
commented
For temporary working spaces to compile programs it would be preferable to use For temporary working spaces to compile programs it would be preferable to use `/tmp` or `$HOME` instead of `/usr` to conform to normal *NIX conventions.
|
||||
RUN apt update && /usr/scripts/make_gcc.sh
|
||||
|
||||
WORKDIR /usr/scripts
|
||||
|
|
|
@ -21,12 +21,12 @@ if [ $? -ne 0 ]; then
|
|||
exit 1
|
||||
fi
|
||||
echo "<<< Make binutils >>>"
|
||||
make
|
||||
make -j$(nproc)
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
echo "<<< Install binutils >>>"
|
||||
make install
|
||||
make -j$(nproc) install
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
@ -38,7 +38,7 @@ git clone --recurse-submodules git://gcc.gnu.org/git/gcc.git
|
|||
cd gcc
|
||||
|
||||
echo "<<< checkout gcc $GCC_VERSION >>>"
|
||||
git checkout releases/$GCC_VERSION
|
||||
git checkout "releases/gcc-$GCC_VERSION"
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
@ -49,19 +49,17 @@ if [ $? -ne 0 ]; then
|
|||
fi
|
||||
|
||||
echo "<<< Make gcc >>>"
|
||||
make all-gcc
|
||||
make -j$(nproc) all-gcc
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "<<< Install gcc >>>"
|
||||
make install-gcc
|
||||
make -j$(nproc) install-gcc
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "<<< Delete GCC folder >>>"
|
||||
cd /usr
|
||||
rm -fr psx-gcc
|
||||
|
||||
# TODO: Remove gcc files after everything
|
||||
rm -fr psx-gcc
|
Loading…
Reference in New Issue
Potentially not needed?