Merge pull request #173055 from trofi/workaround-fno-common-for-grafx2

grafx2: add -fcommon workaround
main
Sergei Trofimovich 2 years ago committed by GitHub
commit 223b8e5db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      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"'';

Loading…
Cancel
Save