From 024871718d767e3682c2a1c8fdaee66db4c83c48 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Wed, 30 May 2018 02:00:06 +0000 Subject: [PATCH] libffi: fix check (cherry picked from commit 13b80d7805ef11db1a3d1511171cee378f0a692f) --- pkgs/development/libraries/libffi/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix index 50cf8526c362..1c7c0715e75b 100644 --- a/pkgs/development/libraries/libffi/default.nix +++ b/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.