summary refs log tree commit diff
path: root/pkgs/os-specific/linux/roccat-tools
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-06-05 20:31:39 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-06-05 20:32:05 +0100
commit0758a0fa275f0d12f3b8ff5daa6e96a2d519ad9f (patch)
treef9c06feb07e41b6e80635dc7403514618e7c7900 /pkgs/os-specific/linux/roccat-tools
parent49c4223e984aef1e78d0073cee112c66b23381fa (diff)
downloadnixpkgs-0758a0fa275f0d12f3b8ff5daa6e96a2d519ad9f.tar
nixpkgs-0758a0fa275f0d12f3b8ff5daa6e96a2d519ad9f.tar.gz
nixpkgs-0758a0fa275f0d12f3b8ff5daa6e96a2d519ad9f.tar.bz2
nixpkgs-0758a0fa275f0d12f3b8ff5daa6e96a2d519ad9f.tar.lz
nixpkgs-0758a0fa275f0d12f3b8ff5daa6e96a2d519ad9f.tar.xz
nixpkgs-0758a0fa275f0d12f3b8ff5daa6e96a2d519ad9f.tar.zst
nixpkgs-0758a0fa275f0d12f3b8ff5daa6e96a2d519ad9f.zip
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/os-specific/linux/roccat-tools')
-rw-r--r--pkgs/os-specific/linux/roccat-tools/default.nix9
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 1eba2511b98..bea79c2007d 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";