This commit explicitly sets libdir
. This is necessary because different
systems use different defaults.
This commit is contained in:
parent
8a7f34665b
commit
62d175c984
@ -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):
|
|||||||
|
|
||||||
@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
|
||||||
|
Loading…
Reference in New Issue
Block a user