summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/r/package.py4
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 65276d9269..f9e0ed0739 100644
--- a/var/spack/repos/builtin/packages/r/package.py
+++ b/var/spack/repos/builtin/packages/r/package.py
@@ -145,6 +145,10 @@ class R(AutotoolsPackage):
if '+memory_profiling' in spec:
config_args.append('--enable-memory-profiling')
+ # Set FPICFLAGS for compilers except 'gcc'.
+ if self.compiler.name != 'gcc':
+ config_args.append('FPICFLAGS={0}'.format(self.compiler.pic_flag))
+
return config_args
@run_after('install')