summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-07-12 22:27:28 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2023-07-12 22:27:28 -0700
commit2052c2d56f1a31f05fc32a0880bc0f640f364893 (patch)
tree82b948e818d9eab9e5b2122826f5f1903490bc1e
parent209ba9b911630debe231dadbc936391e8de13c3d (diff)
downloadnixpkgs-2052c2d56f1a31f05fc32a0880bc0f640f364893.tar
nixpkgs-2052c2d56f1a31f05fc32a0880bc0f640f364893.tar.gz
nixpkgs-2052c2d56f1a31f05fc32a0880bc0f640f364893.tar.bz2
nixpkgs-2052c2d56f1a31f05fc32a0880bc0f640f364893.tar.lz
nixpkgs-2052c2d56f1a31f05fc32a0880bc0f640f364893.tar.xz
nixpkgs-2052c2d56f1a31f05fc32a0880bc0f640f364893.tar.zst
nixpkgs-2052c2d56f1a31f05fc32a0880bc0f640f364893.zip
mmc-utils: disable fortify3 hardening flag
-rw-r--r--pkgs/os-specific/linux/mmc-utils/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/mmc-utils/default.nix b/pkgs/os-specific/linux/mmc-utils/default.nix
index fb1763a735d..9580301eae9 100644
--- a/pkgs/os-specific/linux/mmc-utils/default.nix
+++ b/pkgs/os-specific/linux/mmc-utils/default.nix
@@ -12,6 +12,9 @@ stdenv.mkDerivation {
 
   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ];
 
+  # causes redefinition of _FORTIFY_SOURCE
+  hardeningDisable = [ "fortify3" ];
+
   postInstall = ''
     mkdir -p $out/share/man/man1
     cp man/mmc.1 $out/share/man/man1/