[PATCH 2/3] ruby: allow build with RUNPATH

Felipe Contreras felipe.contreras at gmail.com
Mon Sep 30 09:28:42 PDT 2013


Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 bindings/ruby/extconf.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb
index 6160db2..778016f 100644
--- a/bindings/ruby/extconf.rb
+++ b/bindings/ruby/extconf.rb
@@ -13,6 +13,9 @@ $INCFLAGS = "-I#{dir} #{$INCFLAGS}"
 # make sure there are no undefined symbols
 $LDFLAGS += ' -Wl,--no-undefined'
 
+# enable RUNPATH
+$LDFLAGS += ' -Wl,--enable-new-dtags'
+
 def have_local_library(lib, path, func, headers = nil)
   checking_for checking_message(func, lib) do
     lib = File.join(path, lib)
-- 
1.8.4-fc



More information about the notmuch mailing list