git.iko.soy/typeable/nixpkgs
on master help sign in
psmisc: fix cross-compiling
commit0653da427ac4e75d2f5831e50b71bdb14769ef6c authorvolth <volth@webmaster.ms> dateFri 12 Oct 2018, 13:03 (8 years ago) parentf3dd3b6
1 file changed+5−1
pkgs/os-specific/linux/psmisc/default.nix+5−1
pkgs/os-specific/linux/psmisc/default.nix+5−1
@@ -15,7 +15,11 @@ stdenv.mkDerivation rec {
1515 nativeBuildInputs = [ autoconf automake gettext ];
1616 buildInputs = [ ncurses ];
1717
18− preConfigure = ''
18+ preConfigure = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
19+ # Goes past the rpl_malloc linking failure
20+ export ac_cv_func_malloc_0_nonnull=yes
21+ export ac_cv_func_realloc_0_nonnull=yes
22+ '' + ''
1923 echo $version > .tarball-version
2024 ./autogen.sh
2125 '';