mplayer: fix build with newer clang

Suppress certain warnings that are errors by default with newer versions
of clang.
This commit is contained in:
Randy Eckenrode 2024-03-23 09:42:21 -04:00
parent c1a17238bc
commit f3b5c50aef
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -176,6 +176,9 @@ stdenv.mkDerivation rec {
echo CONFIG_MPEGAUDIODSP=yes >> config.mak 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 ( NIX_LDFLAGS = with lib; toString (
optional fontconfigSupport "-lfontconfig" optional fontconfigSupport "-lfontconfig"
++ optional fribidiSupport "-lfribidi" ++ optional fribidiSupport "-lfribidi"