elfutils: fix compiling with llvm

This commit is contained in:
Tristan Ross
2024-07-27 21:10:54 -07:00
parent 0bb31825c5
commit 16680a70d7
@@ -73,7 +73,11 @@ stdenv.mkDerivation rec {
"--enable-deterministic-archives"
(lib.enableFeature enableDebuginfod "libdebuginfod")
(lib.enableFeature enableDebuginfod "debuginfod")
];
] ++ lib.optional (stdenv.targetPlatform.useLLVM or false) "--disable-demangler"
++ lib.optionals stdenv.cc.isClang [
"CFLAGS=-Wno-unused-private-field"
"CXXFLAGS=-Wno-unused-private-field"
];
enableParallelBuilding = true;