libffi: fix check

(cherry picked from commit 13b80d7805ef11db1a3d1511171cee378f0a692f)
wip/yesman
Orivej Desh 6 years ago
parent 3576d47d33
commit 024871718d
  1. 5
      pkgs/development/libraries/libffi/default.nix

@ -49,6 +49,11 @@ stdenv.mkDerivation rec {
"--enable-pax_emutramp"
];
preCheck = ''
# The tests use -O0 which is not compatible with -D_FORTIFY_SOURCE.
NIX_HARDENING_ENABLE=''${NIX_HARDENING_ENABLE/fortify/}
'';
inherit doCheck;
dontStrip = hostPlatform != buildPlatform; # Don't run the native `strip' when cross-compiling.

Loading…
Cancel
Save