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.
This commit is contained in:
parent
cbdd77f791
commit
5ae7445530
@ -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) ''
|
||||
|
Loading…
Reference in New Issue
Block a user