summary refs log tree commit diff
diff options
context:
space:
mode:
authorKiskae <Kiskae@users.noreply.github.com>2023-10-14 17:04:59 +0200
committerGitHub <noreply@github.com>2023-10-14 17:04:59 +0200
commita4e2dd0f72c32e6036e8f7c52e172cc4b6d1c5a2 (patch)
tree04b7ad9cb27d8392c86a4f0f42b5ca785068396f
parent114236d101bda145ea81fa36b843685c319a45be (diff)
downloadnixpkgs-a4e2dd0f72c32e6036e8f7c52e172cc4b6d1c5a2.tar
nixpkgs-a4e2dd0f72c32e6036e8f7c52e172cc4b6d1c5a2.tar.gz
nixpkgs-a4e2dd0f72c32e6036e8f7c52e172cc4b6d1c5a2.tar.bz2
nixpkgs-a4e2dd0f72c32e6036e8f7c52e172cc4b6d1c5a2.tar.lz
nixpkgs-a4e2dd0f72c32e6036e8f7c52e172cc4b6d1c5a2.tar.xz
nixpkgs-a4e2dd0f72c32e6036e8f7c52e172cc4b6d1c5a2.tar.zst
nixpkgs-a4e2dd0f72c32e6036e8f7c52e172cc4b6d1c5a2.zip
check: fix compilation on cross-compiled musl (#260675)
on cross-compiled musl vsnprintf gets detected as non-compliant with c99.
The included replacement is incompatible with SOURCE_FORTIFY.
-rw-r--r--pkgs/development/libraries/check/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/check/default.nix b/pkgs/development/libraries/check/default.nix
index 8add9c62347..14b4e549264 100644
--- a/pkgs/development/libraries/check/default.nix
+++ b/pkgs/development/libraries/check/default.nix
@@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
     sha256 = "02m25y9m46pb6n46s51av62kpd936lkfv3b13kfpckgvmh5lxpm8";
   };
 
+  # fortify breaks the libcompat vsnprintf implementation
+  hardeningDisable = lib.optionals (stdenv.hostPlatform.isMusl && (stdenv.hostPlatform != stdenv.buildPlatform)) [ "fortify" ];
+
   # Test can randomly fail: https://hydra.nixos.org/build/7243912
   doCheck = false;