Subject: bug#78410: closed (Re: bug#78410: Patch for tiny improve cl wrapper script)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 16 May 2025 21:58:02 +0000

Your bug report

#78410: Patch for tiny improve cl wrapper script

which was filed against the automake package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
78410: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78410
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#78410: Patch for tiny improve cl wrapper script
From: Karl Berry <[email-masked]>
To: [email-masked]
Date: Fri, 16 May 2025 15:57:12 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

Subject: Patch for tiny improve cl wrapper script
From: Yang Kun <[email-masked]>
To: [email-masked]
Date: Tue, 13 May 2025 23:05:54 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Greetings

I found some possible improvements of compile script in lib/ when I use it.

I think we'd better also search for lib$lib.dll.a even it's a odd 
behavior to search lib$lib.a for cl. However I don't know if that's ok 
because it doesn't seem to be useful.

Best Regards,

Yang Kun
From 2298bf9caa81422877a8140fa569f8fb5884ef62 Mon Sep 17 00:00:00 2001
From: Yang Kun <[email-masked]>
Date: Tue, 13 May 2025 22:20:25 +0800
Subject: [PATCH] compile: improve script

* lib/compile: (func_cl_dashl) add .dll.a for search
(simplify) simplify $IFS with ANSI-C Quoting
---
 lib/compile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/lib/compile b/lib/compile
index c404e89..a2afc93 100755
--- a/lib/compile
+++ b/lib/compile
@@ -28,12 +28,8 @@ scriptversion=2025-02-03.05; # UTC
 # bugs to <[email-masked]> or send patches to
 # <[email-masked]>.
 
-nl='
-'
-
-# We need space, tab and new line, in precisely that order.  Quoting is
-# there to prevent tools from complaining about whitespace usage.
-IFS=" ""	$nl"
+# We need space, tab and new line, in precisely that order.
+IFS=$' \t\n'
 
 file_conv=
 
@@ -120,6 +116,11 @@ func_cl_dashl ()
       lib=$dir/$lib.dll.lib
       break
     fi
+    if $shared && test -f "$dir/lib$lib.dll.a"; then
+      found=yes
+      lib=$dir/lib$lib.dll.a
+      break
+    fi
     if test -f "$dir/$lib.lib"; then
       found=yes
       lib=$dir/$lib.lib