about summary refs log tree commit diff
path: root/pkgs/tools/misc/coreutils
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2017-09-19 01:41:01 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2017-09-19 04:59:40 -0400
commit5ae74455302260a38ab46eea7f96eff43de7392f (patch)
tree74cc757e32d50ca6fe0bb4bb58239c8a7b1a4e5b /pkgs/tools/misc/coreutils
parentcbdd77f7911c5d8f2b5410f3c509dee287647f63 (diff)
downloadnixlib-5ae74455302260a38ab46eea7f96eff43de7392f.tar
nixlib-5ae74455302260a38ab46eea7f96eff43de7392f.tar.gz
nixlib-5ae74455302260a38ab46eea7f96eff43de7392f.tar.bz2
nixlib-5ae74455302260a38ab46eea7f96eff43de7392f.tar.lz
nixlib-5ae74455302260a38ab46eea7f96eff43de7392f.tar.xz
nixlib-5ae74455302260a38ab46eea7f96eff43de7392f.tar.zst
nixlib-5ae74455302260a38ab46eea7f96eff43de7392f.zip
coreutils: remove conflicting _FORTIFY_SOURCE definition
Originally this was introduced in 055e646b ('coreutils: Guard against compiler not supporting __builtin_stpncpy_chk') four years ago. Right now this doesn't seem to serve any purpose and it conflicts with the hardening flags:

    <command line>:2:9: warning: '_FORTIFY_SOURCE' macro redefined [-Wmacro-redefined]
    #define _FORTIFY_SOURCE 2
            ^
    <command line>:1:9: note: previous definition is here
    #define _FORTIFY_SOURCE 0
            ^
    1 warning generated.
Diffstat (limited to 'pkgs/tools/misc/coreutils')
-rw-r--r--pkgs/tools/misc/coreutils/default.nix2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix
index c3f4863fe6f5..9a422a96d703 100644
--- a/pkgs/tools/misc/coreutils/default.nix
+++ b/pkgs/tools/misc/coreutils/default.nix
@@ -76,8 +76,6 @@ stdenv.mkDerivation rec {
   NIX_LDFLAGS = optionalString selinuxSupport "-lsepol";
   FORCE_UNSAFE_CONFIGURE = optionalString hostPlatform.isSunOS "1";
 
-  makeFlags = optionalString hostPlatform.isDarwin "CFLAGS=-D_FORTIFY_SOURCE=0";
-
   # Works around a bug with 8.26:
   # Makefile:3440: *** Recursive variable 'INSTALL' references itself (eventually).  Stop.
   preInstall = optionalString (hostPlatform != buildPlatform) ''