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
main
Sergei Trofimovich 2 years ago
parent 49c4223e98
commit 0758a0fa27
  1. 9
      pkgs/os-specific/linux/roccat-tools/default.nix

@ -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";

Loading…
Cancel
Save