diff options
| author | David Bremner <david@tethera.net> | 2015-06-01 09:09:00 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-06-13 17:52:48 +0200 |
| commit | 53035dafe060f6832909ad54e48277c8d3bd2d1b (patch) | |
| tree | d8f2df496253eefef0be0020a5174d6f201bb2d4 /bindings/ruby | |
| parent | 4e799034492ca28d65385afc94a35461fe25b426 (diff) | |
lib, ruby: make use of -Wl,--no-undefined configurable
In particular this is supposed to help build on systems (presumably
using a non-gnu ld) where this flag is not available.
Diffstat (limited to 'bindings/ruby')
| -rw-r--r-- | bindings/ruby/extconf.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
