summarylogtreecommitdiffstats
path: root/0008-Fix-configure.ac-not-finding-AR-with-target-prefix.patch
blob: 4345a5b271e70bfad64b8aff0602706daca20d9d (plain)
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
27
28
29
30
31
32
33
34
35
36
37
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ivan Trubach <mr.trubach@icloud.com>
Date: Sat, 27 Jul 2024 18:43:38 +0300
Subject: [PATCH 08/19] Fix configure.ac not finding $AR with target prefix
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fixes AR and RANLIB with target prefix (if not set to absolute paths).
Looks like AC_PATH_PROG doesn’t perform PATH lookups when user overrides
the program via environment variable but sets the value to program name
instead of absolute path.

Note that LD seems to be unused so we remove it.
---
 xar/configure.ac | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/xar/configure.ac b/xar/configure.ac
index 26d41a5..3d8e5de 100644
--- a/xar/configure.ac
+++ b/xar/configure.ac
@@ -86,9 +86,8 @@ fi
 AC_PROG_CPP
 
 AC_PROG_INSTALL
-AC_PATH_PROG([LD], [ld], , [$PATH])
-AC_PATH_PROG([AR], [ar], , [$PATH])
-AC_PATH_PROG([RANLIB], [ranlib], , [$PATH])
+AC_PROG_AR
+AC_PROG_RANLIB
 AC_PATH_PROG([AUTOCONF], [autoconf], , [$PATH])
 
 dnl Some libtool envy
-- 
2.44.1