libtool.m4 bug (spaces detection in compiler's output after -L/-R)

Igor Rondarev via Libtool <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
Hi!

There is probaby a bug in 'm4/libtool.m4' that prevents correct 
detection of all the library paths provided by compiler (comparison is 
always FALSE). Here is a small patch:

> diff -ruN orig/m4/libtool.m4 patched/m4/libtool.m4
> --- orig/m4/libtool.m4   2019-04-18 16:57:12.487507441 +0300
> +++ patched/m4/libtool.m4        2019-04-18 16:57:29.503424063 +0300
> @@ -7537,8 +7537,8 @@
>      -L* | -R* | -l*)
>         # Some compilers place space between "-{L,R}" and the path.
>         # Remove the space.
> -       if test x-L = "$p" ||
> -          test x-R = "$p"; then
> +       if test x-L = "x$p" ||
> +          test x-R = "x$p"; then
>          prev=$p
>          continue
>         fi
Regards,
Igor.


_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
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.