depot/third_party/nixpkgs/pkgs/by-name/xa/xar/patches/0008-Fix-configure.ac-not-finding-AR-with-target-prefix.patch

37 lines
1.1 KiB
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 doesnt 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