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 <ikspr...@outlook.com> 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 <bug-automake@gnu.org> or send patches to # <automake-patc...@gnu.org>. -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