diff options
Diffstat (limited to 'meta/recipes-devtools/make/make/0001-m4-getloadavg.m4-restrict-AIX-specific-test-on-AIX.patch')
-rw-r--r-- | meta/recipes-devtools/make/make/0001-m4-getloadavg.m4-restrict-AIX-specific-test-on-AIX.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/make/make/0001-m4-getloadavg.m4-restrict-AIX-specific-test-on-AIX.patch b/meta/recipes-devtools/make/make/0001-m4-getloadavg.m4-restrict-AIX-specific-test-on-AIX.patch new file mode 100644 index 0000000000..096bcfdf78 --- /dev/null +++ b/meta/recipes-devtools/make/make/0001-m4-getloadavg.m4-restrict-AIX-specific-test-on-AIX.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 8309601775d9442416329a77f7dcfd8aa799e9a6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jens Rehsack <sno@netbsd.org> | ||
3 | Date: Fri, 21 Feb 2020 17:39:56 +0100 | ||
4 | Subject: [PATCH 1/2] m4/getloadavg.m4: restrict AIX specific test on AIX | ||
5 | |||
6 | When cross compiling for a system without getloadavg, do not try add | ||
7 | additional linker paths unless it's absolutely necessary. | ||
8 | |||
9 | Signed-off-by: Jens Rehsack <sno@netbsd.org> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | m4/getloadavg.m4 | 3 +++ | ||
13 | 1 file changed, 3 insertions(+) | ||
14 | |||
15 | diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 | ||
16 | index 3bd2a14..696c5de 100644 | ||
17 | --- a/m4/getloadavg.m4 | ||
18 | +++ b/m4/getloadavg.m4 | ||
19 | @@ -42,6 +42,8 @@ AC_CHECK_FUNC([getloadavg], [], | ||
20 | fi | ||
21 | |||
22 | if test $gl_func_getloadavg_done = no; then | ||
23 | + AS_CASE([$host_os], | ||
24 | + [aix*], [ | ||
25 | # There is a commonly available library for RS/6000 AIX. | ||
26 | # Since it is not a standard part of AIX, it might be installed locally. | ||
27 | gl_getloadavg_LIBS=$LIBS | ||
28 | @@ -49,6 +51,7 @@ AC_CHECK_FUNC([getloadavg], [], | ||
29 | AC_CHECK_LIB([getloadavg], [getloadavg], | ||
30 | [LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes], | ||
31 | [LIBS=$gl_getloadavg_LIBS]) | ||
32 | + ], [:]) | ||
33 | fi | ||
34 | |||
35 | # Set up the replacement function if necessary. | ||
36 | -- | ||
37 | 2.17.1 | ||
38 | |||