diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-06 18:55:51 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-06-06 18:56:16 +0100 |
commit | aa080353cf5a41e29ada832da99a957e869a80ac (patch) | |
tree | 379524b6d9bc5dcd528caffa8c127548742609d8 | |
parent | ef75dae045ab5777bf6ac3b7e3e6080ea85a865a (diff) |
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
-rw-r--r-- | pkgs/games/macopix/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/macopix/default.nix b/pkgs/games/macopix/default.nix index 8f226f3cef065..5541b3b9d0fa1 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 = { |