diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-06 21:11:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-06 21:11:31 +0100 |
commit | d5a986f460019a924627d79350552f446505cffb (patch) | |
tree | 96feeb0596dd12fbbd41a0abe6d2a1e949e8c46f /src/auto/configure | |
parent | 41d6196e302af5f1a99aeeac587b5c662c410166 (diff) | |
download | vim-git-d5a986f460019a924627d79350552f446505cffb.tar.gz |
patch 8.2.2104: build problem with Ruby 2.7v8.2.2104
Problem: Build problem with Ruby 2.7.
Solution: Adjust function declarations. (Ozaki Kiichi, closes #7430)
Diffstat (limited to 'src/auto/configure')
-rwxr-xr-x | src/auto/configure | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/auto/configure b/src/auto/configure index 205312a3b..ef1acd848 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -7617,8 +7617,7 @@ $as_echo "$rubyhdrdir" >&6; } librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` - if test -f "$rubylibdir/$librubya"; then - librubyarg="$librubyarg" + if test -f "$rubylibdir/$librubya" || expr "$librubyarg" : "-lruby"; then RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" elif test "$librubyarg" = "libruby.a"; then librubyarg="-lruby" |