diff options
| author | Felipe Contreras <felipe.contreras@gmail.com> | 2025-01-01 19:39:34 -0600 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2025-03-01 08:33:09 -0500 |
| commit | 5f9fc7d81a95c380e933189c05558cbecfcfdb99 (patch) | |
| tree | 3664f88f7c500c1063ed14af681fbe8d68be1691 /bindings/ruby/extconf.rb | |
| parent | 53cbb6d0cba6c4763b18f76467e73be21081daae (diff) | |
ruby: simplify build
We can just always add EXTRA_INCFLAGS and EXTRA_LDFLAGS.
Diffstat (limited to 'bindings/ruby/extconf.rb')
| -rw-r--r-- | bindings/ruby/extconf.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb index d914537c..7cec711f 100644 --- a/bindings/ruby/extconf.rb +++ b/bindings/ruby/extconf.rb @@ -5,14 +5,8 @@ require 'mkmf' -dir = File.join(ENV['NOTMUCH_SRCDIR'], 'lib') - -# includes -$INCFLAGS = "-I#{dir} #{$INCFLAGS}" - -if ENV['EXTRA_LDFLAGS'] - $LDFLAGS += " " + ENV['EXTRA_LDFLAGS'] -end +$INCFLAGS = "#{ENV['EXTRA_INCFLAGS']} #{$INCFLAGS}" +$LDFLAGS = "#{ENV['EXTRA_LDFLAGS']} #{$LDFLAGS}" if not ENV['LIBNOTMUCH'] exit 1 |
