diff --git a/pkg.info b/pkg.info index 75250f0..31c0b2c 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: gcc description: The GNU C Compiler version: 15.2.0 -revision: 5 +revision: 6 url: https://gcc.gnu.org/ license: GPL3-or-later,LGPL3-or-later,GPL3 with GCC-exception architecture: any diff --git a/source.sh b/source.sh index 04f981e..07b58db 100644 --- a/source.sh +++ b/source.sh @@ -2,12 +2,19 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT +# The prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + cd "$BPM_SOURCE" + # Fix building with glibc-2.43 + sed -i 's/char [*]q/const &/' libgomp/affinity-fmt.c + # Install libraries to /usr/lib instead of /usr/lib64 + sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64 +} + # The build function is executed in the source directory # This function is used to compile the source code build() { - # Install libraries to /usr/lib instead of /usr/lib64 - sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64 - mkdir build cd build @@ -18,7 +25,6 @@ build() { --enable-default-ssp \ --enable-host-pie \ --disable-multilib \ - --disable-bootstrap \ --disable-fixincludes \ --disable-libssp \ --with-system-zlib \