GNU bug report logs -
#36762
libtool.m4 bug (spaces detection in compiler's output after -L/-R)
Previous Next
Reported by: Igor Rondarev <d_garry <at> mail.ru>
Date: Mon, 22 Jul 2019 14:04:02 UTC
Severity: normal
Done: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi,
since it might take too long until a libtool release for some, I'll
contribute the m4 code to patch the bug from autoconf:
m4_if(m4_cmp(m4_version_compare(LT_PACKAGE_VERSION,[2.4.6]),1),-1,
[m4_pushdef([_LT_SYS_HIDDEN_LIBDEPS],m4_bpatsubst(m4_dquote(
m4_defn([_LT_SYS_HIDDEN_LIBDEPS])),[test x-\([LR]\) = "\$p"],
[test x-\1 = x"$p"]))])dnl
LT_INIT
m4_if(m4_cmp(m4_version_compare(LT_PACKAGE_VERSION,[2.4.6]),1),-1,
[m4_popdef([_LT_SYS_HIDDEN_LIBDEPS])])dnl
Regards, Thomas
On 7/22/19 3:53 PM, Igor Rondarev via Bug-libtool wrote:
> 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.
>
>
>
>
>
> _______________________________________________
> Bug-libtool mailing list
> Bug-libtool <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-libtool
[smime.p7s (application/pkcs7-signature, attachment)]
This bug report was last modified 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.