g15daemon: add -fcommon workaround
Without the change the build fails on -fno-common toolchains like gcc-10 as: $ nix build --impure --expr 'with import ./. {}; g15daemon.override { stdenv = clang13Stdenv; }' ld: g15daemon.h:218: multiple definition of `lcdlist_mutex'; utility_funcs.o:g15daemon.h:218: first defined here ld: g15daemon.h:203: multiple definition of `lcdnode_s'; utility_funcs.o:g15daemon.h:203: first defined here
This commit is contained in:
parent
89e10fc7a0
commit
0e8ede9cc4
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ libg15 libg15render ];
|
||||
|
||||
# Workaround build failure on -fno-common toolchains like upstream gcc-10:
|
||||
# ld: g15_plugins.o:/build/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:218:
|
||||
# multiple definition of `lcdlist_mutex'; utility_funcs.o:g15daemon.h:218: first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue