cpio: Fix build with gcc=15
This commit is contained in:
@@ -24,6 +24,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
separateDebugInfo = true;
|
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 ''
|
preConfigure = lib.optionalString stdenv.hostPlatform.isCygwin ''
|
||||||
sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,'
|
sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,'
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user