mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
openocd: fix build with new glibc
Fixes this build error:
In file included from src/helper/options.c:38:
/nix/store/dl4h1p847f2rsrsfvlmm6cxxx7q21kxj-glibc-2.30-dev/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
| ^~~~~~~
cc1: all warnings being treated as errors
Fixes: 48a997cd
("Merge #66528: glibc: 2.27 -> 2.30 (into staging)")
This commit is contained in:
parent
60fadaa793
commit
14e842ec02
@ -40,6 +40,7 @@ stdenv.mkDerivation rec {
|
||||
"-Wno-format-overflow"
|
||||
"-Wno-error=tautological-compare"
|
||||
"-Wno-error=array-bounds"
|
||||
"-Wno-error=cpp"
|
||||
]);
|
||||
|
||||
postInstall = lib.optionalString stdenv.isLinux ''
|
||||
|
Loading…
Reference in New Issue
Block a user