diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/r-rjava/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-rjava/package.py b/var/spack/repos/builtin/packages/r-rjava/package.py index 87cf4bef54..073e1a7e73 100644 --- a/var/spack/repos/builtin/packages/r-rjava/package.py +++ b/var/spack/repos/builtin/packages/r-rjava/package.py @@ -30,3 +30,8 @@ class RRjava(RPackage): depends_on('libiconv') depends_on('pcre2') depends_on('xz') + + def setup_build_environment(self, env): + spec = self.spec + env.append_flags('JAVAH', '{0}/javah'.format( + join_path(spec['java'].prefix.bin))) |