psmisc: fix cross-compiling

This commit is contained in:
volth 2018-10-12 13:03:50 +00:00 committed by GitHub
parent f3dd3b6afa
commit 0653da427a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake gettext ];
buildInputs = [ ncurses ];
preConfigure = ''
preConfigure = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
# Goes past the rpl_malloc linking failure
export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
'' + ''
echo $version > .tarball-version
./autogen.sh
'';