audiofile: fix build with clang 16

This commit is contained in:
Stanisław Pitucha 2023-10-06 14:27:38 +11:00
parent c6ce286002
commit 4f2bb1ccb3

View file

@ -28,6 +28,9 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "man" ]; outputs = [ "out" "dev" "man" ];
# std::unary_function has been removed in c++17
makeFlags = [ "CXXFLAGS=-std=c++11" ];
# Even when statically linking, libstdc++.la is put in dependency_libs here, # Even when statically linking, libstdc++.la is put in dependency_libs here,
# and hence libstdc++.so passed to the linker, just pass -lstdc++ and let the # and hence libstdc++.so passed to the linker, just pass -lstdc++ and let the
# compiler do what it does best. (libaudiofile.la is a generated file, so we # compiler do what it does best. (libaudiofile.la is a generated file, so we