Merge pull request #173994 from trofi/workaround-fno-common-for-mpg321

mpg321: add -fcommon workaround
This commit is contained in:
Sandro
2022-05-25 00:32:50 +02:00
committed by GitHub
@@ -28,6 +28,12 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: volume.o:/build/mpg321-0.3.2-orig/mpg321.h:119: multiple definition of
# `loop_remaining'; mpg321.o:/build/mpg321-0.3.2-orig/mpg321.h:119: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
configureFlags =
[ ("--enable-alsa=" + (if stdenv.isLinux then "yes" else "no")) ]
++ (lib.optional (defaultAudio != null)