Merge pull request #298444 from reckenrode/mplayer-clang

mplayer: fix build with newer clang
This commit is contained in:
Pol Dellaiera 2024-03-24 09:29:15 +01:00 committed by GitHub
commit f56ac26d4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,6 +176,9 @@ stdenv.mkDerivation rec {
echo CONFIG_MPEGAUDIODSP=yes >> config.mak
'';
# Fixes compilation with newer versions of clang that make these warnings errors by default.
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion -Wno-incompatible-function-pointer-types";
NIX_LDFLAGS = with lib; toString (
optional fontconfigSupport "-lfontconfig"
++ optional fribidiSupport "-lfribidi"