vim: enable fortify when using clang (#506853)
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
{ lib, fetchFromGitHub }:
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
stdenv,
|
||||
}:
|
||||
rec {
|
||||
version = "9.2.0106";
|
||||
|
||||
@@ -17,7 +21,7 @@ rec {
|
||||
enableParallelBuilding = true;
|
||||
enableParallelInstalling = false;
|
||||
|
||||
hardeningDisable = [ "fortify" ];
|
||||
hardeningDisable = if stdenv.cc.isClang then [ "strictflexarrays1" ] else [ "fortify" ];
|
||||
|
||||
# Use man from $PATH; escape sequences are still problematic.
|
||||
postPatch = ''
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}:
|
||||
|
||||
let
|
||||
common = callPackage ./common.nix { };
|
||||
common = callPackage ./common.nix { inherit stdenv; };
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "vim";
|
||||
|
||||
@@ -81,7 +81,7 @@ let
|
||||
endif
|
||||
'';
|
||||
|
||||
common = callPackage ./common.nix { };
|
||||
common = callPackage ./common.nix { inherit stdenv; };
|
||||
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
|
||||
Reference in New Issue
Block a user