Merge pull request #264697 from wegank/gnuradio-clang-16

tecla, libbladeRF: fix build with clang 16
This commit is contained in:
Pierre Bourdon 2023-11-01 13:27:10 +01:00 committed by GitHub
commit 6e4f3b7d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,10 @@ stdenv.mkDerivation rec {
"-DBLADERF_GROUP=bladerf"
];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=unused-but-set-variable";
};
hardeningDisable = [ "fortify" ];
meta = with lib; {

View File

@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
--replace "stripprog=" "stripprog=\$STRIP # "
'';
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
meta = {
description = "Command-line editing library";
homepage = "https://www.astro.caltech.edu/~mcs/tecla/";