branch master updated: libtool.m4: Check for space after -l flag

Ileana Dumitrescu <[email protected]>
Newsgroups gmane.comp.gnu.libtool.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch master
in repository libtool.

The following commit(s) were added to refs/heads/master by this push:
     new fb617e2b libtool.m4: Check for space after -l flag
fb617e2b is described below

commit fb617e2ba0809218486323823b74f706cedd9aac
Author: Ileana Dumitrescu <[email protected]>
AuthorDate: Sat Feb 17 18:34:03 2024 +0200

    libtool.m4: Check for space after -l flag
    
    The -R and -L flags are currently checked if they have a space behind
    them. -l should be added to the list of cases checked.
    
    * m4/libtool.m4: Check for a space after the -l flag.
---
 m4/libtool.m4 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index d9725fdf..66b12b5a 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -7555,10 +7555,11 @@ if AC_TRY_EVAL(ac_compile); then
     case $prev$p in
 
     -L* | -R* | -l*)
-       # Some compilers place space between "-{L,R}" and the path.
+       # Some compilers place space between "-{L,R,l}" and the path.
        # Remove the space.
        if test x-L = x"$p" ||
-          test x-R = x"$p"; then
+          test x-R = x"$p" ||
+          test x-l = x"$p"; then
 	 prev=$p
 	 continue
        fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.