summaryrefslogtreecommitdiff
path: root/net-misc/rwhoisd/files/rwhoisd-1.5.9.6-fix-direct-ar-call.patch
blob: c015559fc8914fca07c54a4682468dffcb8b13fa (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
Date: Wed, 1 Mar 2023 22:04:45 +0100
Subject: [PATCH] fix direct ar call

Prevent build to directly call ar and use a variable instead.

Bug: https://bugs.gentoo.org/725194

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>

--- a/common/Makefile.in
+++ b/common/Makefile.in
@@ -1,7 +1,7 @@

 # programs
 CC      = @CC@
-AR      = ar
+AR      = @AR@
 RANLIB  = @RANLIB@
 SHELL   = /bin/sh

--- a/configure.ac
+++ b/configure.ac
@@ -4,6 +4,8 @@ dnl This has been updated to use autoconf-2.52.
 AC_INIT
 AC_CONFIG_SRCDIR([common/attributes.c])

+AC_CHECK_TOOL(AR, ar, false)
+
 dnl Random substitution variables
 if test -f VERSION; then
 	RWHOIS_VERSION=`cat VERSION`
--
2.39.2