public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Add -Wl, --undefined-version when using newer lld
@ 2023-08-29 3:32 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2023-08-29 3:32 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3697387eaba3c225239ba2ddd636231033273788
commit 3697387eaba3c225239ba2ddd636231033273788
Author: Fangrui Song <maskray@google.com>
Date: Tue Aug 29 03:30:46 2023 +0000
Add -Wl,--undefined-version when using newer lld
to work around errors like
version script assignment of 'GLIBC_2.4' to symbol '__stack_chk_guard' failed: symbol not defined
Diff:
---
Makeconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makeconfig b/Makeconfig
index fea770fec4..021636bea4 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -936,6 +936,7 @@ ifeq ($(with-lld),yes)
LDFLAGS.so += -fuse-ld=lld
LDFLAGS-rtld += -fuse-ld=lld
LDFLAGS += -fuse-ld=lld
+LDFLAGS += -Wl,--undefined-version
endif
endif # with-clang == yes
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-29 3:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29 3:32 [glibc/google/grte/v5-2.27/master] Add -Wl, --undefined-version when using newer lld Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).