X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fruby%2Fextconf.rb;fp=bindings%2Fruby%2Fextconf.rb;h=6d5607e168228bf7c12949fe9bb10d0800629d4d;hp=6160db26e2ea10286fb16065c2c030ea90a0c07e;hb=53035dafe060f6832909ad54e48277c8d3bd2d1b;hpb=4e799034492ca28d65385afc94a35461fe25b426 diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb index 6160db26..6d5607e1 100644 --- a/bindings/ruby/extconf.rb +++ b/bindings/ruby/extconf.rb @@ -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