forked from mirrors/nixpkgs
gnaural: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: src/net/../gnauralnet.h:233: multiple definition of `GN_ScheduleFingerprint'; src/net/../../src/gnauralnet.h:233: first defined here
This commit is contained in:
parent
aa70573011
commit
e4cb4bdb05
|
@ -12,6 +12,11 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ gtk2 libsndfile portaudio ];
|
buildInputs = [ gtk2 libsndfile portaudio ];
|
||||||
|
|
||||||
|
# Workaround build failure on -fno-common toolchains:
|
||||||
|
# ld: src/net/../gnauralnet.h:233: multiple definition of `GN_ScheduleFingerprint';
|
||||||
|
# src/net/../../src/gnauralnet.h:233: first defined here
|
||||||
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/applications
|
mkdir -p $out/share/applications
|
||||||
substitute \
|
substitute \
|
||||||
|
|
Loading…
Reference in a new issue