]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/extconf.rb
lib, ruby: make use of -Wl,--no-undefined configurable
[notmuch] / bindings / ruby / extconf.rb
index 6160db26e2ea10286fb16065c2c030ea90a0c07e..6d5607e168228bf7c12949fe9bb10d0800629d4d 100644 (file)
@@ -10,8 +10,9 @@ dir = File.join('..', '..', 'lib')
 # includes
 $INCFLAGS = "-I#{dir} #{$INCFLAGS}"
 
-# make sure there are no undefined symbols
-$LDFLAGS += ' -Wl,--no-undefined'
+if ENV['EXTRA_LDFLAGS']
+  $LDFLAGS += " " + ENV['EXTRA_LDFLAGS']
+end
 
 def have_local_library(lib, path, func, headers = nil)
   checking_for checking_message(func, lib) do