Merge pull request #175353 from trofi/workaround-fno-common-for-t4kcommon

t4kcommon: add -fcommon workaround

authored by Sandro and committed by GitHub 00d5e2af 83ad22d8

+7
+7
pkgs/games/t4kcommon/default.nix
··· 19 19 }) 20 20 ]; 21 21 22 + # Workaround build failure on -fno-common toolchains like upstream 23 + # gcc-10. Otherwise build fails as: 24 + # ld: CMakeFiles/t4k_common.dir/t4k_throttle.c.o:(.bss+0x0): multiple definition of 25 + # `wrapped_lines'; CMakeFiles/t4k_common.dir/t4k_audio.c.o:(.bss+0x0): first defined here 26 + # TODO: revisit https://github.com/tux4kids/t4kcommon/pull/10 when merged. 27 + NIX_CFLAGS_COMPILE = "-fcommon"; 28 + 22 29 nativeBuildInputs = [ cmake pkg-config ]; 23 30 buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf libpng librsvg libxml2 ]; 24 31