Merge pull request #169543 from trofi/fix-zkfuse-for-gcc-11

zkfuse: add a -std=c++14 workaround for gcc-11
This commit is contained in:
Mario Rodas 2022-04-22 22:09:29 -05:00 committed by GitHub
commit 2dcf00e6f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,10 @@ stdenv.mkDerivation rec {
-e 's,"zookeeper\.h",<zookeeper/zookeeper.h>,'
'';
# c++17 (gcc-11's default) breaks the build as:
# zkadapter.h:616:33: error: ISO C++17 does not allow dynamic exception specifications
NIX_CFLAGS_COMPILE = [ "-std=c++14" ];
installPhase = ''
mkdir -p $out/bin
cp -v src/zkfuse $out/bin