r: fix building :3.6.1 with gcc 10: (#37080)

This commit is contained in:
Bryce Torcello 2023-04-21 16:43:09 +00:00 committed by GitHub
parent ff689be250
commit 459c5cfad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,6 +177,10 @@ def configure_args(self):
if self.compiler.name != "gcc":
config_args.append("FPICFLAGS={0}".format(self.compiler.cc_pic_flag))
if self.spec.satisfies("@:3.6.1 %gcc@10:"):
config_args.append("CFLAGS=-fcommon")
config_args.append("FFLAGS=-fallow-argument-mismatch")
return config_args
@run_after("install")