extconf.rb checks ENV['ABS_TOP_BUILDDIR'] to decide between
in-tree and system-installed librrd paths. The ruby target
passed these as make variables to the subsequent $(MAKE) call
but not as environment variables to $(RUBY) extconf.rb, so
the in-tree build path was never taken.
Add env before the $(RUBY) call, matching the pattern used by
the python, perl-piped, and perl-shared targets.
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
ruby:
-mkdir -p ${builddir}/ruby
( cd ${builddir}/ruby \
- && $(RUBY) ${abs_srcdir}/ruby/extconf.rb \
+ && env \
+ ABS_TOP_SRCDIR=${abs_top_srcdir} \
+ ABS_TOP_BUILDDIR=${abs_top_builddir} \
+ $(RUBY) ${abs_srcdir}/ruby/extconf.rb \
&& $(MAKE) \
EPREFIX=$(exec_prefix) \
ABS_TOP_SRCDIR=${abs_top_srcdir} \