patch 9.2.0674: configure: clears dynamic ruby linker flags

Commit: 
https://github.com/vim/vim/commit/e4c190ac55b8f276a4e478e8191d902b76927309
Author: Vladimír Marek <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1waIRA-004QWG-6n%40256bit.org.

Raspunde prin e-mail lui