From: Ileana Dumitrescu Date: Sat, 17 Feb 2024 16:34:03 +0000 (+0200) Subject: libtool.m4: Check for space after -l flag X-Git-Tag: v2.5.0~24 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fb617e2ba0809218486323823b74f706cedd9aac;p=thirdparty%2Flibtool.git 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. --- 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