diff options
Diffstat (limited to 'pkgs/applications/graphics/grafx2/default.nix')
-rw-r--r-- | pkgs/applications/graphics/grafx2/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/grafx2/default.nix b/pkgs/applications/graphics/grafx2/default.nix index df570008b0f7..48e97e7dbb3b 100644 --- a/pkgs/applications/graphics/grafx2/default.nix +++ b/pkgs/applications/graphics/grafx2/default.nix @@ -15,6 +15,12 @@ stdenv.mkDerivation rec { preBuild = "cd src"; + # Workaround build failure on -fno-common toolchains like upstream + # gcc-10. Otherwise build fails as: + # ld: ../obj/unix/tiles.o:/build/grafx2/src/global.h:306: multiple definition of + # `Main_selector'; ../obj/unix/main.o:/build/grafx2/src/global.h:306: first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + preInstall = '' mkdir -p "$out" ''; installPhase = ''make install prefix="$out"''; |