glibc/glibc-2.25-force-use-ld-bfd.patch

23 lines
712 B
Diff
Raw Permalink Normal View History

2022-09-20 14:42:45 +00:00
diff -up glibc-2.36/Makeconfig.35~ glibc-2.36/Makeconfig
--- glibc-2.36/Makeconfig.35~ 2022-08-02 13:08:59.219749575 +0200
+++ glibc-2.36/Makeconfig 2022-08-02 13:11:51.923013290 +0200
@@ -109,7 +109,6 @@ endif
#### Do NOT edit this file.
####
-
# Common prefix for machine-independent installation directories.
ifeq ($(origin prefix),undefined) # ifndef would override explicit empty value.
prefix = /usr/local
@@ -358,6 +357,10 @@ else
real-static-start-installed-name = $(static-start-installed-name)
endif
+# glibc doesn't like gold and lld
+LDFLAGS.so += -fuse-ld=bfd
+LDFLAGS-rtld += -fuse-ld=bfd
+
2022-09-20 14:42:45 +00:00
relro-LDFLAGS = -Wl,-z,relro
LDFLAGS.so += $(relro-LDFLAGS)
LDFLAGS-rtld += $(relro-LDFLAGS)