From d306eea857c00d0e67f36ad17a0b281d3d46674d Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 5 Jun 2022 20:11:57 +0100 Subject: [PATCH] oroborus: add -fcommon workaround Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: workspaces.o:src/keyboard.h:93: multiple definition of `NumLockMask'; client.o:src/keyboard.h:93: first defined here --- pkgs/applications/window-managers/oroborus/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/window-managers/oroborus/default.nix b/pkgs/applications/window-managers/oroborus/default.nix index 275db56dadae..fc2517107670 100644 --- a/pkgs/applications/window-managers/oroborus/default.nix +++ b/pkgs/applications/window-managers/oroborus/default.nix @@ -46,6 +46,11 @@ stdenv.mkDerivation rec { xorgproto ]; + # Workaround build failure on -fno-common toolchains: + # ld: workspaces.o:src/keyboard.h:93: multiple definition of + # `NumLockMask'; client.o:src/keyboard.h:93: first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + meta = with lib; { homepage = "https://web.archive.org/web/20191129172107/https://www.oroborus.org/"; description = "A really minimalistic X window manager";