1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

miranda: fix build with clang

This commit is contained in:
Ben Siraphob 2024-04-21 21:36:53 -04:00
parent 666bb4ea05
commit 91354da666
No known key found for this signature in database
GPG key ID: 45F0E5D788143267

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"