mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
cpio: Fix build with gcc=15
This commit is contained in:
parent
4e2d61f0a1
commit
e4e98bb074
|
|
@ -24,6 +24,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
separateDebugInfo = true;
|
||||
|
||||
# The code won't compile in c23 mode.
|
||||
# https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters
|
||||
configureFlags = [
|
||||
"CFLAGS=-std=gnu17"
|
||||
];
|
||||
|
||||
preConfigure = lib.optionalString stdenv.hostPlatform.isCygwin ''
|
||||
sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,'
|
||||
'';
|
||||
|
|
|
|||
Loading…
Reference in a new issue