diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-11-25 21:48:26 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-11-25 21:57:56 -0500 |
commit | 0c6a0c817aad863a58d0bf0c8dc55da3c611805a (patch) | |
tree | 7d53bb6a8a5c65766036354a43e7c8ab83126642 /pkgs/os-specific/darwin/cctools | |
parent | f0f4f9084773d3f82ca9d829746146827ccca7cf (diff) | |
download | nixlib-0c6a0c817aad863a58d0bf0c8dc55da3c611805a.tar nixlib-0c6a0c817aad863a58d0bf0c8dc55da3c611805a.tar.gz nixlib-0c6a0c817aad863a58d0bf0c8dc55da3c611805a.tar.bz2 nixlib-0c6a0c817aad863a58d0bf0c8dc55da3c611805a.tar.lz nixlib-0c6a0c817aad863a58d0bf0c8dc55da3c611805a.tar.xz nixlib-0c6a0c817aad863a58d0bf0c8dc55da3c611805a.tar.zst nixlib-0c6a0c817aad863a58d0bf0c8dc55da3c611805a.zip |
cctools: only add libtool on native builds
libtool is not really needed and it interferes with updateAutotoolsGnuConfigScriptsHook. So remove it when cross-compiling, but leave it in native to preserve hashes.
Diffstat (limited to 'pkgs/os-specific/darwin/cctools')
-rw-r--r-- | pkgs/os-specific/darwin/cctools/port.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/os-specific/darwin/cctools/port.nix b/pkgs/os-specific/darwin/cctools/port.nix index dcb24b3f0d9c..f7c67df94484 100644 --- a/pkgs/os-specific/darwin/cctools/port.nix +++ b/pkgs/os-specific/darwin/cctools/port.nix @@ -30,7 +30,12 @@ let outputs = [ "out" "dev" ]; - nativeBuildInputs = [ autoconf automake libtool autoreconfHook ]; + nativeBuildInputs = [ autoconf automake ] + + # TODO: remove on next hash change, libtool is unnecessary with autoreconfHook + ++ stdenv.lib.optional (stdenv.targetPlatform == stdenv.hostPlatform) libtool + + ++ [ autoreconfHook ]; buildInputs = [ libuuid ] ++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi libobjc ] ++ stdenv.lib.optional enableTapiSupport libtapi; |