From bcfa6a78e859c5bb8b9c516498fedfb33cd4dab2 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 4 Nov 2011 21:11:43 +0000 Subject: [PATCH] Fix one part of cross-Linux-PAM failure... svn path=/nixpkgs/trunk/; revision=30237 --- pkgs/os-specific/linux/pam/default.nix | 4 ++++ 1 file changed, 4 insertions(+) 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 = ''