mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 02:55:39 +00:00
grafx2: add -fcommon workaround
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
This commit is contained in:
parent
197681059f
commit
85b0aa8d4d
@ -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…
Reference in New Issue
Block a user