roccat-tools: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: ryos_talk.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait';
      ryos_custom_lights.c.o:(.bss+0x0): first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-05 20:31:39 +01:00
parent 49c4223e98
commit 0758a0fa27

View file

@ -31,7 +31,14 @@ stdenv.mkDerivation rec {
"-DLIBDIR=lib"
];
NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ];
NIX_CFLAGS_COMPILE = [
"-I${harfbuzz.dev}/include/harfbuzz"
# Workaround build failure on -fno-common toolchains:
# ld: ryos_talk.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait';
# ryos_custom_lights.c.o:(.bss+0x0): first defined here
"-fcommon"
];
meta = {
description = "Tools to configure ROCCAT devices";