aboutsummaryrefslogtreecommitdiff
path: root/bindings/ruby/extconf.rb
diff options
context:
space:
mode:
authorTomi Ollila <tomi.ollila@iki.fi>2017-03-12 13:59:13 +0200
committerDavid Bremner <david@tethera.net>2017-03-12 09:17:29 -0300
commit35cdebdad0d41be58a4c705ec48fd1bb51f098eb (patch)
tree2e11ef4e71a0e4950e515cd902975494e62527fd /bindings/ruby/extconf.rb
parent18914c725bd373f8cd6a5072df73ffe31653208c (diff)
fix out of tree build
In addition to use ${srcdir} and deliver ${NOTMUCH_SRCDIR} where needed, source from ruby bindings had to be copied to the out-of-tree target directory -- if the source files in source directory were referenced in build and there were also built object files there, those could have been considered as target files (and then not found when attempting to create bindings/ruby/notmuch.so).
Diffstat (limited to 'bindings/ruby/extconf.rb')
-rw-r--r--bindings/ruby/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb
index ddaa6841..161de5a2 100644
--- a/bindings/ruby/extconf.rb
+++ b/bindings/ruby/extconf.rb
@@ -5,7 +5,7 @@
require 'mkmf'
-dir = File.join('..', '..', 'lib')
+dir = File.join(ENV['NOTMUCH_SRCDIR'], 'lib')
# includes
$INCFLAGS = "-I#{dir} #{$INCFLAGS}"