From fb617e2ba0809218486323823b74f706cedd9aac Mon Sep 17 00:00:00 2001 From: Ileana Dumitrescu Date: Sat, 17 Feb 2024 18:34:03 +0200 Subject: [PATCH] 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 d9725fdfd..66b12b5a5 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 -- 2.47.2