Merge pull request #171916 from trofi/fix-fno-common-simh-build

simh: add -fcommon workaround
This commit is contained in:
Anderson Torres
2022-05-07 15:44:56 -03:00
committed by GitHub
@@ -22,6 +22,11 @@ stdenv.mkDerivation rec {
dontConfigure = true;
# Workaround to build against upstream gcc-10 and clang-11.
# Can be removed when next release contains
# https://github.com/simh/simh/issues/794
NIX_CFLAGS_COMPILE = [ "-fcommon" ];
makeFlags = [ "GCC=${stdenv.cc.targetPrefix}cc" "CC_STD=-std=c99" "LDFLAGS=-lm" ];
preInstall = ''