patch 9.2.0674: configure: clears dynamic ruby linker flags
Commit:
https://github.com/vim/vim/commit/e4c190ac55b8f276a4e478e8191d902b76927309
Author: Vladimír Marek <
vlma...@gmail.com>
Date: Thu Jun 18 19:15:45 2026 +0000
patch 9.2.0674: configure: clears dynamic ruby linker flags
Problem: configure: clears dynamic ruby linker flags, after setting those
Solution: Make configure keep Ruby linker arguments when Ruby support is
built with --enable-rubyinterp=dynamic. The dynamic Ruby
branch clears RUBY_LIBS before setting DYNAMIC_RUBY, so add librubyarg
after that branch instead of before it (Vladimír Marek).
related: #17906
closes: #20558
Signed-off-by: Vladimír Marek <
vlma...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/auto/configure b/src/auto/configure
index 483beff82..bcbeb525c 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -8599,10 +8599,6 @@ printf "%s
" "$rubyhdrdir" >&6; }
RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
fi
- if test "X$librubyarg" != "X"; then
- RUBY_LIBS="$librubyarg $RUBY_LIBS"
- fi
-
RUBY_SRC="if_ruby.c"
RUBY_OBJ="objects/if_ruby.o"
@@ -8618,6 +8614,9 @@ printf "%s
" "$rubyhdrdir" >&6; }
RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\"$libruby_soname\\" $RUBY_CFLAGS"
RUBY_LIBS=
fi
+ if test "X$librubyarg" != "X"; then
+ RUBY_LIBS="$librubyarg $RUBY_LIBS"
+ fi
if test "X$CLANG_VERSION" != "X" -a "$rubyversion" -ge 30; then
RUBY_CFLAGS="$RUBY_CFLAGS -fdeclspec"
fi
diff --git a/src/
configure.ac b/src/
configure.ac
index 06f03344c..bac223698 100644
--- a/src/
configure.ac
+++ b/src/
configure.ac
@@ -2148,10 +2148,6 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
fi
- if test "X$librubyarg" != "X"; then
- RUBY_LIBS="$librubyarg $RUBY_LIBS"
- fi
-
dnl Here the Ruby LDFLAGS used to be added to LDFLAGS, but that turns
dnl out to cause trouble and was removed.
@@ -2167,6 +2163,9 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\"$libruby_soname\\" $RUBY_CFLAGS"
RUBY_LIBS=
fi
+ if test "X$librubyarg" != "X"; then
+ RUBY_LIBS="$librubyarg $RUBY_LIBS"
+ fi
if test "X$CLANG_VERSION" != "X" -a "$rubyversion" -ge 30; then
RUBY_CFLAGS="$RUBY_CFLAGS -fdeclspec"
fi
diff --git a/src/version.c b/src/version.c
index 14ba1f8ed..c47616512 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 674,
/**/
673,
/**/