Merge pull request #60678 from mayflower/atomicparsley-cross

atomicparsley: fix cross
This commit is contained in:
Robin Gloster 2019-05-07 09:50:04 +00:00 committed by GitHub
commit 97450715da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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; {