mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
alan_2: add -fcommon workaround for gcc-10
Without the change the build against upstream gcc-10 build fails as: ld: smScSema.o:/build/source/compiler/smScSema.c:135: multiple definition of `charset'; options.o:/build/source/compiler/options.c:16: first defined here Use -fcommon as a workeround until upstream updates the code.
This commit is contained in:
parent
e680b5cf74
commit
b125089f5a
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
|
|||
|
||||
makefile = "Makefile.unix";
|
||||
|
||||
# Add a workarounf for -fno-common tollchains like upstream gcc-10.
|
||||
# alan-3 is already fixed, but the backport is nontrivial.
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/alan2
|
||||
cp compiler/alan $out/bin/alan2
|
||||
|
|
Loading…
Reference in a new issue