Merge pull request #177088 from trofi/workaround-fno-common-for-coriander

coriander: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-06-15 06:58:33 +00:00 committed by GitHub
commit ba4453f804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,11 @@ stdenv.mkDerivation rec {
sha256 = "0l6hpfgy5r4yardilmdrggsnn1fbfww516sk5a90g1740cd435x5";
};
# Workaround build failure on -fno-common toolchains:
# ld: subtitles.o:src/coriander.h:110: multiple definition of
# `main_window'; main.o:src/coriander.h:110: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure = ''
cp ${automake}/share/automake-*/mkinstalldirs .
'';