Merge pull request #266222 from wegank/gengetopt-clang-16
gengetopt: fix build with clang 16
This commit is contained in:
commit
5188867031
2 changed files with 11 additions and 0 deletions
|
@ -27,6 +27,10 @@ stdenv.mkDerivation rec {
|
||||||
'set +o posix'
|
'set +o posix'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||||
|
CXXFLAGS = "-std=c++14";
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Command-line option parser generator";
|
description = "Command-line option parser generator";
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,13 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ gengetopt m4 git gnupg perl autoconf automake help2man pkg-config ];
|
nativeBuildInputs = [ gengetopt m4 git gnupg perl autoconf automake help2man pkg-config ];
|
||||||
buildInputs = [ boehmgc ];
|
buildInputs = [ boehmgc ];
|
||||||
|
|
||||||
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||||
|
NIX_CFLAGS_COMPILE = toString [
|
||||||
|
"-Wno-error=implicit-function-declaration"
|
||||||
|
"-Wno-error=implicit-int"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/rrthomas/mmv";
|
homepage = "https://github.com/rrthomas/mmv";
|
||||||
description = "Utility for wildcard renaming, copying, etc";
|
description = "Utility for wildcard renaming, copying, etc";
|
||||||
|
|
Loading…
Reference in a new issue