miranda: fix build with clang
This commit is contained in:
parent
666bb4ea05
commit
91354da666
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue