GNU bug report logs - #54832
[patch] update glibc to 2.35

Previous Next

Package: guix-patches;

Reported by: zamfofex <zamfofex <at> twdb.moe>

Date: Sun, 10 Apr 2022 01:21:03 UTC

Severity: normal

Tags: patch

Done: Marius Bakke <marius <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 54832 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: zamfofex <zamfofex <at> twdb.moe>, 54832 <at> debbugs.gnu.org
Subject: Re: [bug#54832] [patch] update glibc to 2.35
Date: Sun, 10 Apr 2022 12:16:30 +0200
[Message part 1 (text/plain, inline)]
zamfofex schreef op za 09-04-2022 om 22:16 [-0300]:
+                     (define empty-static-libraries '("libpthread.a"
"libdl.a" "libutil.a" "libanl.a"))
+                     (define (empty-static-library? file)
+                       (any (lambda (s) (string=? file s)) empty-
static-libraries))
+
                      (define (static-library? file)
                        ;; Return true if FILE is a static library. 
The
                        ;; "_nonshared.a" files are referred to by
libc.so,
                        ;; libpthread.so, etc., which are in fact
linker
                        ;; scripts.
                        (and (string-suffix? ".a" file)
-                            (not (string-contains file
"_nonshared"))))
+                            (not (string-contains file
"_nonshared"))
+                            (not (empty-static-library? file))))

Why are empty static libraries skipped?  Would "gcc -static -lpthread main.c" (*)
(in an environment that includes glibc:static) still work, or does it now fail?

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 318 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.