Andrew Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame^] | 1 | From a26530083a29eeee910bfd606ecc621acecd547a Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 3 Aug 2011 14:12:30 -0700 |
| 4 | Subject: [PATCH] coreutils: Fix build on uclibc |
| 5 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | We have problem using hardcoded directories like /usr/local here |
| 7 | which will be checked for cross builds. This is a special case which |
| 8 | is valid for AIX only. We do not have AIX as one of our supported |
| 9 | build host or target. Therefore we get rid of the hardcoded paths |
| 10 | and make life easier for cross compilation process. |
| 11 | |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | |
| 14 | Upstream-Status: Inappropriate [Upstream does care for AIX while we may not] |
| 15 | |
Andrew Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame^] | 16 | --- |
| 17 | m4/getloadavg.m4 | 12 ------------ |
| 18 | 1 file changed, 12 deletions(-) |
| 19 | |
| 20 | diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 |
| 21 | index 8e96965..63782a2 100644 |
| 22 | --- a/m4/getloadavg.m4 |
| 23 | +++ b/m4/getloadavg.m4 |
| 24 | @@ -41,18 +41,6 @@ AC_CHECK_FUNC([getloadavg], [], |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | [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 Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame^] | 32 | - if test $cross_compiling != yes; then |
| 33 | - LIBS="-L/usr/local/lib $LIBS" |
| 34 | - fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | - 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 |