Merge pull request #305875 from siraben/fix-miranda-clang

miranda: fix build with clang
This commit is contained in:
Weijia Wang 2024-04-22 05:05:07 +02:00 committed by GitHub
commit 5e84121d7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -55,7 +55,11 @@ stdenv.mkDerivation rec {
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: types.o:(.bss+0x11b0): multiple definition of `current_file'; y.tab.o:(.bss+0x70): first defined here
env.NIX_CFLAGS_COMPILE = "-fcommon";
env.NIX_CFLAGS_COMPILE = toString ([
"-fcommon"
] ++ lib.optionals stdenv.cc.isClang [
"-Wno-error=int-conversion"
]);
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"