mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
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
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,11 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ pkg-config ];
|
||||
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 = ''
|
||||
mkdir -p $out/share/applications
|
||||
substitute \
|
||||
|
|
Loading…
Reference in a new issue