Merge pull request #48268 from volth/patch-267
psmisc: fix cross-compiling
commitc6a82eae32764940c113622aa34e0422bb2e811d
authorJörg Thalheim <Mic92@users.noreply.github.com>
dateFri 12 Oct 2018, 14:14 (8 years ago)
parent5bd1b670653da4
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 '';