mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
mpg321: add -fcommon workaround
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
This commit is contained in:
parent
e04ca59317
commit
a35a568954
@ -23,6 +23,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)
|
||||
|
Loading…
Reference in New Issue
Block a user