3
0
Fork 0
forked from mirrors/nixpkgs

libelf: use autoreconfHook for NetBSD cross

This was a precedence mistake when I added this conditional — the ++
that adds autoreconfHook only took effect in the else branch.

Fixes: fc04308b0a ("libelf: fix build on NetBSD")
This commit is contained in:
Alyssa Ross 2023-01-26 13:19:22 +00:00
parent 9a666e2b4c
commit 6b692bc868

View file

@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
strictDeps = true;
nativeBuildInputs =
if stdenv.hostPlatform.isNetBSD then [ netbsd.gencat ] else [ gettext ]
(if stdenv.hostPlatform.isNetBSD then [ netbsd.gencat ] else [ gettext ])
# Need to regenerate configure script with newer version in order to pass
# "mr_cv_target_elf=yes", but `autoreconfHook` brings in `makeWrapper`
# which doesn't work with the bootstrapTools bash, so can only do this