diff options
author | Bryce Torcello <losuler@posteo.net> | 2023-04-21 16:43:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 11:43:09 -0500 |
commit | 459c5cfad6a4302f05daecd4568ea4713f5c0318 (patch) | |
tree | 950671d1f62cc7de18b765e909dcb514f16f247d | |
parent | ff689be250e6dbb55657b4660e14e8f492057f83 (diff) | |
download | spack-459c5cfad6a4302f05daecd4568ea4713f5c0318.tar.gz spack-459c5cfad6a4302f05daecd4568ea4713f5c0318.tar.bz2 spack-459c5cfad6a4302f05daecd4568ea4713f5c0318.tar.xz spack-459c5cfad6a4302f05daecd4568ea4713f5c0318.zip |
r: fix building :3.6.1 with gcc 10: (#37080)
-rw-r--r-- | var/spack/repos/builtin/packages/r/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r/package.py b/var/spack/repos/builtin/packages/r/package.py index 21180d25b6..bc4db6e810 100644 --- a/var/spack/repos/builtin/packages/r/package.py +++ b/var/spack/repos/builtin/packages/r/package.py @@ -177,6 +177,10 @@ class R(AutotoolsPackage): 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") |