libtool-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: libtool: fix empty "-L" in compiler_lib_search_pa


From: Ileana Dumitrescu
Subject: branch master updated: libtool: fix empty "-L" in compiler_lib_search_path
Date: Tue, 16 Jan 2024 13:10:31 -0500

This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch master
in repository libtool.

The following commit(s) were added to refs/heads/master by this push:
     new 4da5b575 libtool: fix empty "-L" in compiler_lib_search_path
4da5b575 is described below

commit 4da5b57531bc2db0131bb26ad017792688674890
Author: Xiang.Lin <myd.xia@gmail.com>
AuthorDate: Mon Nov 6 15:07:56 2023 +0800

    libtool: fix empty "-L" in compiler_lib_search_path
    
    If the compiler places a space between "-L" and the path, the path will
    be skipped and only an empty "-L" will appear in the final
    compiler_lib_search_path. This will cause the first library in postdeps
    following compiler_lib_search_path to be accidentally skipped.
    
    * libtool.m4: Fixed string comparison by adding missing 'x's.
---
 m4/libtool.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 20d2c3ab..23a68497 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -7563,8 +7563,8 @@ if AC_TRY_EVAL(ac_compile); then
     -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]