libffi: fix check

(cherry picked from commit 13b80d7805ef11db1a3d1511171cee378f0a692f)
This commit is contained in:
Orivej Desh 2018-05-30 02:00:06 +00:00
parent 3576d47d33
commit 024871718d

View File

@ -49,6 +49,11 @@ stdenv.mkDerivation rec {
"--enable-pax_emutramp" "--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; inherit doCheck;
dontStrip = hostPlatform != buildPlatform; # Don't run the native `strip' when cross-compiling. dontStrip = hostPlatform != buildPlatform; # Don't run the native `strip' when cross-compiling.