]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add -Wl,--undefined-version when using newer lld
authorFangrui Song <maskray@google.com>
Tue, 29 Aug 2023 03:30:46 +0000 (03:30 +0000)
committerFangrui Song <maskray@google.com>
Tue, 29 Aug 2023 03:31:31 +0000 (03:31 +0000)
to work around errors like

    version script assignment of 'GLIBC_2.4' to symbol '__stack_chk_guard' failed: symbol not defined

Makeconfig

index fea770fec467c4e68c1b95b35b7a69801931d2e2..021636bea42fb002738fd7b4677e22d3029db59d 100644 (file)
@@ -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