Difference between lib*-routines and lib*-sysdep_routines

Florian Weimer fweimer@redhat.com
Sun Aug 14 09:17:00 GMT 2016


On 08/13/2016 11:46 PM, Florian Weimer wrote:
> extra-lib.mk says this:
>
> # This file is included several times in a row, once
> # for each element of $(extra-libs).  $(extra-libs-left)
> # is initialized first to $(extra-libs) so that with each
> # inclusion, we advance $(lib) to the next library name (e.g. libfoo).
> # The variable $($(lib)-routines) defines the list of modules
> # to be included in that library.  A sysdep Makefile can add to
> # $(lib)-sysdep_routines to include additional modules.
>
> This suggests that sysdeps Makefiles must use lib*-sysdep_routines
> instead of lib*-routines.  But we use both sets of variables in sysdeps
> Makefiles, and as far as I can tell, they are equivalent.
>
> What is the difference, if any?

I found a hint in the manual:

“
You should use @samp{sysdep-routines} rather than adding modules to 
@samp{routines} because the latter is used in determining what to 
distribute for each subdirectory of the main source tree.
”

We use Git to generate the tarball, so I don't think there is a 
difference left.

Florian



More information about the Libc-alpha mailing list