diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-05 20:31:39 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-06-05 20:32:05 +0100 |
commit | 0758a0fa275f0d12f3b8ff5daa6e96a2d519ad9f (patch) | |
tree | f9c06feb07e41b6e80635dc7403514618e7c7900 /pkgs | |
parent | 49c4223e984aef1e78d0073cee112c66b23381fa (diff) |
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
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/os-specific/linux/roccat-tools/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/roccat-tools/default.nix b/pkgs/os-specific/linux/roccat-tools/default.nix index 1eba2511b9877..bea79c2007dbb 100644 --- a/pkgs/os-specific/linux/roccat-tools/default.nix +++ b/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"; |