Skip to content
Snippets Groups Projects
Commit 62d175c9 authored by Glenn Johnson's avatar Glenn Johnson
Browse files

This commit explicitly sets `libdir`. This is necessary because different

systems use different defaults.
parent 8a7f3466
Branches
Tags
No related merge requests found
...@@ -50,9 +50,12 @@ class R(Package): ...@@ -50,9 +50,12 @@ class R(Package):
depends_on('tk') depends_on('tk')
def install(self, spec, prefix): def install(self, spec, prefix):
rlibdir = join_path(prefix, 'rlib')
options = ['--prefix=%s' % prefix, options = ['--prefix=%s' % prefix,
'--libdir=%s' % rlibdir,
'--enable-R-shlib', '--enable-R-shlib',
'--enable-BLAS-shlib'] '--enable-BLAS-shlib',
'--enable-R-framework=no']
if '+external-lapack' in spec: if '+external-lapack' in spec:
options.extend(['--with-blas', '--with-lapack']) options.extend(['--with-blas', '--with-lapack'])
...@@ -66,7 +69,7 @@ def install(self, spec, prefix): ...@@ -66,7 +69,7 @@ def install(self, spec, prefix):
@property @property
def r_lib_dir(self): def r_lib_dir(self):
return os.path.join('lib64', 'R', 'library') return os.path.join('rlib', 'R', 'library')
def setup_dependent_environment(self, spack_env, run_env, extension_spec): def setup_dependent_environment(self, spack_env, run_env, extension_spec):
# Set R_LIBS to include the library dir for the # Set R_LIBS to include the library dir for the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment