diff --git a/core/gcc/build b/core/gcc/build index ca6e649d..643bec8e 100755 --- a/core/gcc/build +++ b/core/gcc/build @@ -24,13 +24,6 @@ case $2 in "$gcc_version"*) bootstrap=--disable-bootstrap esac -# Mold fails to dynamically link GCC, static linking works fine and does not -# result in a large size increase (quite resonable). This will hopefully be -# fixed upstream soon. -case $CFLAGS$CXXFLAGS$(ld --version) in *mold*) - patch -p1 < static-bin.patch -esac - ../gcc/configure \ libat_cv_have_ifunc=no \ --prefix=/usr \ diff --git a/core/gcc/patches/static-bin.patch b/core/gcc/patches/static-bin.patch deleted file mode 100644 index 9bb57220..00000000 --- a/core/gcc/patches/static-bin.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/gcc/gcc/Makefile.in b/gcc/gcc/Makefile.in -index 8a5fb3f..9b12f75 100644 ---- a/gcc/gcc/Makefile.in -+++ b/gcc/gcc/Makefile.in -@@ -1060,7 +1060,7 @@ ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) - ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) - - # This is the variable to use when using $(LINKER). --ALL_LINKERFLAGS = $(ALL_CXXFLAGS) -+ALL_LINKERFLAGS = $(ALL_CXXFLAGS) -static - - # Build and host support libraries. - -@@ -2967,7 +2967,7 @@ gengtype$(exeext) : gengtype.o gengtype-lex.o gengtype-parse.o \ - # Rule for the generator programs: - $(genprog:%=build/gen%$(build_exeext)): build/gen%$(build_exeext): build/gen%.o $(BUILD_LIBDEPS) - +$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ \ -- $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS) -+ $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS) -static - - omp-general.o: omp-device-properties.h - diff --git a/core/gcc/sources b/core/gcc/sources index 04381409..73217e3c 100644 --- a/core/gcc/sources +++ b/core/gcc/sources @@ -3,4 +3,3 @@ https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz gcc/gmp https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.xz gcc/mpfr https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz gcc/mpc files/c99 -patches/static-bin.patch