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.
This commit is contained in:
Matthew Bauer 2019-11-25 21:48:26 -05:00
parent f0f4f90847
commit 0c6a0c817a

View file

@ -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;