mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
sil: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: main.o:/build/source/Sil/src/externs.h:57: multiple definition of `mini_screenshot_char'; variable.o:/build/source/Sil/src/externs.h:57: first defined here
This commit is contained in:
parent
0831857a14
commit
d2ef633388
@ -34,6 +34,12 @@ stdenv.mkDerivation rec {
|
||||
buildFlagsArray+=("LIBS=-lXaw -lXext -lSM -lICE -lXmu -lXt -lX11 -lncurses")
|
||||
'';
|
||||
|
||||
# Workaround build failure on -fno-common toolchains like upstream
|
||||
# gcc-10. Otherwise build fails as:
|
||||
# ld: main.o:/build/source/Sil/src/externs.h:57: multiple definition of
|
||||
# `mini_screenshot_char'; variable.o:/build/source/Sil/src/externs.h:57: first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
installPhase = ''
|
||||
# the makefile doesn't have a sensible install target, so we hav to do it ourselves
|
||||
mkdir -p $out/bin
|
||||
|
Loading…
Reference in New Issue
Block a user