Merge pull request #172666 from trofi/workarond-fno-common-for-alan-2

alan_2: add -fcommon workaround for gcc-10
This commit is contained in:
Sandro 2022-05-12 15:08:39 +02:00 committed by GitHub
commit b0397f34d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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