pgplot: fix with gcc<10 (#25042)

This commit is contained in:
Dylan Simon 2021-07-23 04:34:26 -04:00 committed by GitHub
parent dc3e1d9a40
commit 7b0d869c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,8 @@ def edit(self, spec, prefix):
('@CFLAGC@', ("-Wall -fPIC -DPG_PPU -O -std=c89 " +
"-Wno-error=implicit-function-declaration")),
('@FCOMPL@', self.compiler.f77),
('@FFLAGC@', "-Wall -fPIC -O -ffixed-line-length-none -fallow-invalid-boz"),
('@FFLAGC@', "-Wall -fPIC -O -ffixed-line-length-none" +
(" -fallow-invalid-boz" if spec.satisfies('%gcc@10:') else "")),
('@LIBS@', "-lgfortran"),
('@SHARED_LD@', self.compiler.cc + " -shared -o $SHARED_LIB -lgfortran"),
]