mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
Merge pull request #264697 from wegank/gnuradio-clang-16
tecla, libbladeRF: fix build with clang 16
This commit is contained in:
commit
6e4f3b7d86
@ -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; {
|
||||
|
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user