atomicparsley: fix cross

This commit is contained in:
Robin Gloster 2019-05-02 00:15:30 +02:00
parent ecf59492c7
commit 0dbdf29237
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -18,6 +18,12 @@ stdenv.mkDerivation rec {
cf-private
];
configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
# AC_FUNC_MALLOC is broken on cross builds.
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
];
installPhase = "install -D AtomicParsley $out/bin/AtomicParsley";
meta = with stdenv.lib; {