blob: 1a8a9b9983ee5a34f3f52318e05c921ff710d6ed [file] [log] [blame]
Andrew Geissler4b740dc2020-05-05 08:54:39 -05001From a26530083a29eeee910bfd606ecc621acecd547a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 3 Aug 2011 14:12:30 -0700
4Subject: [PATCH] coreutils: Fix build on uclibc
5
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006We have problem using hardcoded directories like /usr/local here
7which will be checked for cross builds. This is a special case which
8is valid for AIX only. We do not have AIX as one of our supported
9build host or target. Therefore we get rid of the hardcoded paths
10and make life easier for cross compilation process.
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13
14Upstream-Status: Inappropriate [Upstream does care for AIX while we may not]
15
Andrew Geissler4b740dc2020-05-05 08:54:39 -050016---
17 m4/getloadavg.m4 | 12 ------------
18 1 file changed, 12 deletions(-)
19
20diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4
21index 8e96965..63782a2 100644
22--- a/m4/getloadavg.m4
23+++ b/m4/getloadavg.m4
24@@ -41,18 +41,6 @@ AC_CHECK_FUNC([getloadavg], [],
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025 [LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes])
26 fi
27
28- if test $gl_func_getloadavg_done = no; then
29- # There is a commonly available library for RS/6000 AIX.
30- # Since it is not a standard part of AIX, it might be installed locally.
31- gl_getloadavg_LIBS=$LIBS
Andrew Geissler4b740dc2020-05-05 08:54:39 -050032- if test $cross_compiling != yes; then
33- LIBS="-L/usr/local/lib $LIBS"
34- fi
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035- AC_CHECK_LIB([getloadavg], [getloadavg],
36- [LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes],
37- [LIBS=$gl_getloadavg_LIBS])
38- fi
39-
40 # Set up the replacement function if necessary.
41 if test $gl_func_getloadavg_done = no; then
42 HAVE_GETLOADAVG=0