Commit 9d23d58
committed
Fix link flags for Ruby
Fix #468
configure script had an issue that linker always links system Ruby framework.
$ configure --enable-rubyinterp=yes --with-ruby-command=/usr/bin/ruby
$ grep RUBY_LIBS src/auto/config.mk
RUBY_LIBS= -framework Ruby
$ configure --enable-rubyinterp=yes --with-ruby-command=/usr/local/bin/ruby
$ grep RUBY_LIBS src/auto/config.mk
RUBY_LIBS= -framework Ruby
After this commit, configure will pick right library settings from Ruby
$ configure --enable-rubyinterp=yes --with-ruby-command=/usr/bin/ruby
$ grep RUBY_LIBS src/auto/config.mk
RUBY_LIBS= -framework Ruby
$ configure --enable-rubyinterp=yes --with-ruby-command=/usr/local/bin/ruby
$ grep RUBY_LIBS src/auto/config.mk
RUBY_LIBS= -lruby.2.4.0 -lpthread -ldl -lobjc1 parent 3269753 commit 9d23d58
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7262 | 7262 | | |
7263 | 7263 | | |
7264 | 7264 | | |
7265 | | - | |
| 7265 | + | |
7266 | 7266 | | |
7267 | 7267 | | |
7268 | 7268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1930 | 1930 | | |
1931 | 1931 | | |
1932 | 1932 | | |
1933 | | - | |
| 1933 | + | |
1934 | 1934 | | |
1935 | 1935 | | |
1936 | 1936 | | |
| |||
0 commit comments