diff --git a/pkgs/os-specific/linux/pam/default.nix b/pkgs/os-specific/linux/pam/default.nix index 1e2d20c1edb5..e8fc1081ad35 100644 --- a/pkgs/os-specific/linux/pam/default.nix +++ b/pkgs/os-specific/linux/pam/default.nix @@ -17,6 +17,10 @@ stdenv.mkDerivation { crossAttrs = { # Skip libxcrypt cross-building, as it fails for mips and armv5tel propagatedBuildInputs = [ flex.hostDrv cracklib.hostDrv ]; + preConfigure = '' + ar x ${flex.hostDrv}/lib/libfl.a + export LDFLAGS="$LDFLAGS $PWD/libyywrap.o" + ''; }; postInstall = ''