about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-05-25 06:43:16 +0000
committerGitHub <noreply@github.com>2022-05-25 06:43:16 +0000
commit147392432158e5aa8159835b0f92de4df7f8e385 (patch)
tree0945952f49d6e77da0295854b1be963901a62bff /pkgs/applications/audio
parentffdc7226562eda2e058c8f7c969c7f8e59c69298 (diff)
parent1dace77da58628bf29655c033b939daf3670546a (diff)
Merge pull request #173993 from trofi/workaround-fno-common-for-mpc123
mpc123: add -fcommon workaround
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/mpc123/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mpc123/default.nix b/pkgs/applications/audio/mpc123/default.nix
index 7ce8af1de23ab..e247ebeb2b1d1 100644
--- a/pkgs/applications/audio/mpc123/default.nix
+++ b/pkgs/applications/audio/mpc123/default.nix
@@ -12,6 +12,11 @@ stdenv.mkDerivation rec {
 
   patches = [ ./use-gcc.patch ];
 
+  # Workaround build failure on -fno-common toolchains like upstream
+  # gcc-10. Otherwise build fails as:
+  #   ld: /build/cc566Cj9.o:(.bss+0x0): multiple definition of `mpc123_file_reader'; ao.o:(.bss+0x40): first defined here
+  NIX_CFLAGS_COMPILE = "-fcommon";
+
   buildInputs = [ gettext libmpcdec libao ];
 
   installPhase =