aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/coreutils/coreutils-8.24/remove-usr-local-lib-from-m4.patch
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-07-07 10:56:39 +0800
committerChen Qi <Qi.Chen@windriver.com>2015-07-07 11:06:50 +0800
commit3db01c6686b85677a8256956c39eb1075a7009e1 (patch)
treee49844100cc10c064b7899fb59245817b7079cf4 /meta/recipes-core/coreutils/coreutils-8.24/remove-usr-local-lib-from-m4.patch
parentdd09fab685de2eaf04aa5ab60f8220b89c1deae9 (diff)
downloadopenembedded-core-contrib-ChenQi/coreutils-8.24.tar.gz
openembedded-core-contrib-ChenQi/coreutils-8.24.tar.bz2
openembedded-core-contrib-ChenQi/coreutils-8.24.zip
coreutils: upgrade to 8.24ChenQi/coreutils-8.24ChenQi/coreutils
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-core/coreutils/coreutils-8.24/remove-usr-local-lib-from-m4.patch')
-rw-r--r--meta/recipes-core/coreutils/coreutils-8.24/remove-usr-local-lib-from-m4.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-core/coreutils/coreutils-8.24/remove-usr-local-lib-from-m4.patch b/meta/recipes-core/coreutils/coreutils-8.24/remove-usr-local-lib-from-m4.patch
new file mode 100644
index 0000000000..2ef8a548ac
--- /dev/null
+++ b/meta/recipes-core/coreutils/coreutils-8.24/remove-usr-local-lib-from-m4.patch
@@ -0,0 +1,31 @@
+We have problem using hardcoded directories like /usr/local here
+which will be checked for cross builds. This is a special case which
+is valid for AIX only. We do not have AIX as one of our supported
+build host or target. Therefore we get rid of the hardcoded paths
+and make life easier for cross compilation process.
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Upstream-Status: Inappropriate [Upstream does care for AIX while we may not]
+
+Index: coreutils-8.14/m4/getloadavg.m4
+===================================================================
+--- coreutils-8.14.orig/m4/getloadavg.m4 2011-09-19 08:09:24.000000000 -0700
++++ coreutils-8.14/m4/getloadavg.m4 2011-10-19 21:42:00.385533357 -0700
+@@ -41,16 +41,6 @@
+ [LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes])
+ fi
+
+- if test $gl_func_getloadavg_done = no; then
+- # There is a commonly available library for RS/6000 AIX.
+- # Since it is not a standard part of AIX, it might be installed locally.
+- gl_getloadavg_LIBS=$LIBS
+- LIBS="-L/usr/local/lib $LIBS"
+- AC_CHECK_LIB([getloadavg], [getloadavg],
+- [LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes],
+- [LIBS=$gl_getloadavg_LIBS])
+- fi
+-
+ # Set up the replacement function if necessary.
+ if test $gl_func_getloadavg_done = no; then
+ HAVE_GETLOADAVG=0