File: libtool.patch

package info (click to toggle)
google-perftools 2.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,760 kB
  • sloc: cpp: 82,562; perl: 4,116; python: 4,021; ansic: 817; makefile: 721; sh: 402; ruby: 138; asm: 130
file content (26 lines) | stat: -rw-r--r-- 890 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
commit 251dfb7dd328c01f3636022b47021eaef06a6cab
Author: Xiang.Lin <myd.xia@gmail.com>
Date:   Mon Nov 6 15:07:56 2023 +0800

    libtool: fix empty "-L" in compiler_lib_search_path
    
    If compiler place space between "-L" and the path, the path will
    be skipped and only have empty "-L" on final compiler_lib_search_path,
    which will cause first library in postdeps following compiler_lib_search_path
    be skipped accidentally.

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index d034b12..4bd8282 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -7584,8 +7584,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