Simon Josefsson wrote:
> Getenv
> can be a complicated function, and didn't use to be thread-safe
> everywhere and GPL is not LGPL-compatible.
getenv() is MT-safe, as long as other threads don't use setenv()
or putenv(). It setenv/putenv that are not MT-safe, except in very
recent glibc versions.
If getenv() were not MT-safe, all the multithreaded programs that
use gettext() would have had a problem, because gettext() uses
getenv ("LANGUAGE").
> It seems unfortunate that
> this change makes it harder to use the crc-x86_64 optimization from
> these low-level libraries, not simpler, so I'll have to drop the
> optimization and only use the core 'crc' module instead for these
> usages.
Alternatively, you could override the 'cpu-supports' module with a
simpler one, via
https://www.gnu.org/software/gnulib/manual/html_node/Extending-Gnulib.html ,
and then you can still use the crc-x86_64 optimization.
Bruno