pipewire_0_2: add -fcommon workaround

Without the change build fails as:

    $ nix build --impure --expr 'with import ./. {}; pipewire_0_2.override { stdenv = clang12Stdenv; }' -L
    ...
    ld: spa/plugins/bluez5/libspa-bluez5.so.p/bluez5-monitor.c.o:(.bss+0x0):
      multiple definition of `spa_a2dp_sink_factory'

Newer versions don't require the fix as upstream removed the code completely later.
main
Sergei Trofimovich 2 years ago
parent f9e65e44e5
commit c9f22532e4
  1. 5
      pkgs/development/libraries/pipewire/0.2.nix

@ -28,6 +28,11 @@ in stdenv.mkDerivation rec {
alsa-lib ffmpeg_4 libjack2 udev libva xorg.libX11 sbc SDL2
];
# Workaround build on gcc-10+ and clang11+:
# spa/plugins/bluez5/libspa-bluez5.so.p/bluez5-monitor.c.o:(.bss+0x0):
# multiple definition of `spa_a2dp_sink_factory'
NIX_CFLAGS_COMPILE = [ "-fcommon" ];
mesonFlags = [
"-Ddocs=true"
"-Dgstreamer=enabled"

Loading…
Cancel
Save