Interesting. Can we accept the patch as it is for now and work in the linker dependency with a different commit perhaps? As I have to admit I am not quite sure what to do now. Ondrej
-----Original Message----- From: Bruno Haible <br...@clisp.org> Sent: Ätvrtek 5. ledna 2023 10:01 To: Paul Eggert <egg...@cs.ucla.edu>; bug-gnulib@gnu.org; Ondrej Valousek <ondrej.valousek...@renesas.com> Subject: Re: [PATCH] Use xattr (Linux) in qcopy-acl.c Ondrej Valousek wrote: > Why don't we solve the linker problem with the "--as-needed" option? This > will make linker clever enough not to link libraries that are not needed. '--as-needed' is a can of worms in itself. In GNU gettext (IIRC) Debian used '--as-needed' in the link command line, and together with libtool that reorders the elements of the command line, it had ill effects. More generally, Gnulib should help GNU packages and integrate into the package's build system the best it can. It should *not* force specifies ways of doing onto the package's build system. Bruno