summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/r/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/r/package.py b/var/spack/repos/builtin/packages/r/package.py
index 8235e8bd24..ebd83ec9a8 100644
--- a/var/spack/repos/builtin/packages/r/package.py
+++ b/var/spack/repos/builtin/packages/r/package.py
@@ -96,11 +96,16 @@ class R(AutotoolsPackage):
spec = self.spec
prefix = self.prefix
+ tclConfig_path = join_path(spec['tcl'].prefix.lib, 'tclConfig.sh')
+ tkConfig_path = join_path(spec['tk'].prefix.lib, 'tkConfig.sh')
+
config_args = [
'--libdir={0}'.format(join_path(prefix, 'rlib')),
'--enable-R-shlib',
'--enable-BLAS-shlib',
- '--enable-R-framework=no'
+ '--enable-R-framework=no',
+ '--with-tcl-config={0}'.format(tclConfig_path),
+ '--with-tk-config={0}'.format(tkConfig_path),
]
if '+external-lapack' in spec: