xz: run autoreconfHook on OpenBSD

This cannot be made unconditional as it causes infinite recursion, but
the old libtool being used messes up the distribution of OpenBSD shared
libraries.
This commit is contained in:
Audrey Dutcher 2025-02-12 18:27:31 -07:00
parent 99af4fcad0
commit 598aa1f954

View File

@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
autoreconfHook,
enableStatic ? stdenv.hostPlatform.isStatic,
writeScript,
testers,
@ -37,6 +38,10 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true;
doCheck = true;
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isOpenBSD [
autoreconfHook
];
# this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion
# necessary for FreeBSD code path in configure
postPatch = ''