nixpkgs/pkgs
Alyssa Ross 0901dfb214 stdenv/setup: force libtool to skip dep checks
When we "fix" libtool, we empty out its system library path to avoid
it discovering libraries in e.g. /usr when the sandbox is disabled.
But this also means that the checks libtool does to make sure it can
find the libraries its supposed to be linking to won't work.  On Linux
and Darwin, this isn't a problem, because libtool doesn't actually
perform any checks, but it is on at least NetBSD and Cygwin[1].

So, we force libtool not to do these checks on any platform, bringing
the more exotic platforms into line with the existing behaviour on
Linux and Darwin.

Without this change, lots of library packages produce warnings like
this in their build output on the platforms with checks by default:

    *** Warning: linker path does not have real file for library -lz.
    *** I have the capability to make that library automatically link in when
    *** you link to this library.  But I can only do this if you have a
    *** shared version of the library, which you do not appear to have
    *** because I did check the linker path looking for a file starting
    *** with libz but no candidates were found. (...for regex pattern test)
    *** The inter-library dependencies that have been dropped here will be
    *** automatically added whenever a program is linked with this library
    *** or is declared to -dlopen it.

And dependent packages break because libtool doesn't link their
transitive dependencies.  So making this change fixes _lots_ of
packages on those platforms.

[1]: https://git.savannah.gnu.org/cgit/libtool.git/tree/m4/libtool.m4?id=544fc0e2c2a03129a540aebef41ad32bfb5c06b8#n3445
2021-07-27 20:42:31 +00:00
..
applications Merge staging-next into staging 2021-07-27 18:01:39 +00:00
build-support Merge master into staging-next 2021-07-26 18:01:17 +00:00
common-updater
data Merge master into staging-next 2021-07-27 12:01:20 +00:00
desktops cinnamon-common: remove alias 2021-07-27 08:16:20 -07:00
development Merge staging-next into staging 2021-07-27 18:01:39 +00:00
games Merge master into staging-next 2021-07-27 00:01:35 +00:00
misc Merge master into staging-next 2021-07-27 06:01:01 +00:00
os-specific Merge pull request #130851 from kjeremy/patch-1 2021-07-27 20:29:43 +00:00
pkgs-lib
servers Merge master into staging-next 2021-07-27 18:01:01 +00:00
shells Merge remote-tracking branch 'upstream/master' into staging-next 2021-07-26 09:19:44 +02:00
stdenv stdenv/setup: force libtool to skip dep checks 2021-07-27 20:42:31 +00:00
test
tools Merge staging-next into staging 2021-07-27 18:01:39 +00:00
top-level Merge master into staging-next 2021-07-27 18:01:01 +00:00