Merge pull request #173720 from trofi/workaround-fno-common-for-djmount

djmount: add -fcommon workaround
This commit is contained in:
Anderson Torres 2022-05-29 21:00:32 -03:00 committed by GitHub
commit 1b36442421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ fuse ];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: libupnp/upnp/.libs/libupnp.a(libupnp_la-gena_ctrlpt.o):libupnp/upnp/src/inc/upnpapi.h:163:
# multiple definition of `pVirtualDirList'; libupnp/upnp/.libs/libupnp.a(libupnp_la-upnpapi.o):libupnp/upnp/src/inc/upnpapi.h:163: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
meta = {
homepage = "http://djmount.sourceforge.net/";
description = "UPnP AV client, mounts as a Linux filesystem the media content of compatible UPnP AV devices";