diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-05-14 09:54:30 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-05-14 09:54:50 +0100 |
commit | a45936728a83cca77573b21a4d0cef79b898d689 (patch) | |
tree | 616dbbabf7bde20143b0ff92af16efc0f1261429 /pkgs/games/egoboo | |
parent | 197681059f0fff10d7abd75d11f36654ea063e92 (diff) |
egoboo: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:
ld: mad.o:(.bss+0x233800): multiple definition of `tile_dict'; camera.o:(.bss+0x140): first defined here
Diffstat (limited to 'pkgs/games/egoboo')
-rw-r--r-- | pkgs/games/egoboo/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/egoboo/default.nix b/pkgs/games/egoboo/default.nix index 506868efe312..4023eccec441 100644 --- a/pkgs/games/egoboo/default.nix +++ b/pkgs/games/egoboo/default.nix @@ -45,6 +45,11 @@ stdenv.mkDerivation rec { ''; */ + # Workaround build failure on -fno-common toolchains like upstream + # gcc-10. Otherwise build fails as: + # ld: mad.o:(.bss+0x233800): multiple definition of `tile_dict'; camera.o:(.bss+0x140): first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + NIX_LDFLAGS = "-lm"; meta = { |