From aa080353cf5a41e29ada832da99a957e869a80ac Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 6 Jun 2022 18:55:51 +0100 Subject: macopix: add -fcommon workaround Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: dnd.o:src/main.h:136: multiple definition of `MENU_EXT'; main.o:src/main.h:136: first defined here --- pkgs/games/macopix/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/games/macopix/default.nix b/pkgs/games/macopix/default.nix index 8f226f3cef0..5541b3b9d0f 100644 --- a/pkgs/games/macopix/default.nix +++ b/pkgs/games/macopix/default.nix @@ -19,6 +19,11 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + # Workaround build failure on -fno-common toolchains: + # ld: dnd.o:src/main.h:136: multiple definition of + # `MENU_EXT'; main.o:src/main.h:136: first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + NIX_LDFLAGS = "-lX11"; meta = { -- cgit 1.4.1