Rebuild with binutils 2.46 and enable bootstrapping
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: gcc
|
name: gcc
|
||||||
description: The GNU C Compiler
|
description: The GNU C Compiler
|
||||||
version: 15.2.0
|
version: 15.2.0
|
||||||
revision: 5
|
revision: 6
|
||||||
url: https://gcc.gnu.org/
|
url: https://gcc.gnu.org/
|
||||||
license: GPL3-or-later,LGPL3-or-later,GPL3 with GCC-exception
|
license: GPL3-or-later,LGPL3-or-later,GPL3 with GCC-exception
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -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 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
|
# 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
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
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
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
@@ -18,7 +25,6 @@ build() {
|
|||||||
--enable-default-ssp \
|
--enable-default-ssp \
|
||||||
--enable-host-pie \
|
--enable-host-pie \
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
--disable-bootstrap \
|
|
||||||
--disable-fixincludes \
|
--disable-fixincludes \
|
||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
--with-system-zlib \
|
--with-system-zlib \
|
||||||
|
|||||||
Reference in New Issue
Block a user