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
2020-01-03 15:20:54 -05:00
parent 010d2f4aa2
commit 6f8b2f3961
+6 -1
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;