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:
Bjørn Forsman 2020-02-10 16:25:58 +01:00
parent 60fadaa793
commit 14e842ec02

View File

@ -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 ''