Merge pull request #173986 from trofi/workaround-fno-common-for-mlmmj

mlmmj: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-06-02 07:35:22 +00:00 committed by GitHub
commit 5ebfb1845b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,12 @@ stdenv.mkDerivation rec {
sha256 = "1sghqvwizvm1a9w56r34qy5njaq1c26bagj85r60h32gh3fx02bn";
};
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: getlistdelim.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: multiple definition of
# `subtype_strs'; mlmmj-send.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
postInstall = ''
# grab all documentation files
docfiles=$(find -maxdepth 1 -name "[[:upper:]][[:upper:]]*")