mirror of
https://codeberg.org/kiss-community/repo
synced 2025-04-01 10:42:52 -06:00
gcc: remove mold workaround
This commit is contained in:
parent
070b1be287
commit
f5c901bf5e
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user