about summary refs log tree commit diff
path: root/pkgs/build-support/cc-wrapper
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2023-08-26 13:25:46 +0100
committerRobert Scott <code@humanleg.org.uk>2023-08-28 15:06:44 +0100
commitdf02fcb79b4cae3652640ca66c2d1dfd0c6a4486 (patch)
treed0b23135b3880d469dffff4259ccc54aba4800ea /pkgs/build-support/cc-wrapper
parente45b9d1b8c27121b6faa5e82f3a04b1045f09e61 (diff)
cc-wrapper: don't use fortify-headers for non-gcc compilers
Diffstat (limited to 'pkgs/build-support/cc-wrapper')
-rw-r--r--pkgs/build-support/cc-wrapper/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index c7c733a427aa6..f52ac48a1a877 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -69,7 +69,7 @@ let
 
   includeFortifyHeaders' = if includeFortifyHeaders != null
     then includeFortifyHeaders
-    else targetPlatform.libc == "musl";
+    else (targetPlatform.libc == "musl" && isGNU);
 
   # Prefix for binaries. Customarily ends with a dash separator.
   #