]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool.m4: Check for space after -l flag
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Sat, 17 Feb 2024 16:34:03 +0000 (18:34 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Sat, 17 Feb 2024 16:40:46 +0000 (18:40 +0200)
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

index d9725fdfd1cd552445f7d28bca7d7c392a15ea07..66b12b5a597fc0cfbb863b2545b88a05b94df995 100644 (file)
@@ -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