diff options
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch')
-rw-r--r-- | meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch b/meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch index a221dab528..c104e904cc 100644 --- a/meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch +++ b/meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch | |||
@@ -1,34 +1,29 @@ | |||
1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 1 | libtool.m4: Change libtool to handle sysroots by default |
2 | Subject: [PATCH 06/12] libtool.m4: Handle "/" as a sysroot correctly | ||
3 | 2 | ||
4 | Update libtool.m4 to resolve a problem with lt_sysroot not being properly | 3 | Rather than using no sysroot by default, always query gcc to obtain the sysroot. |
5 | updated if the option '--with[-libtool]-sysroot' is not provided when | ||
6 | running the 'configure' script for a package so that "/" as a sysroot | ||
7 | is handled correctly by libtool. | ||
8 | 4 | ||
9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 5 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
10 | 6 | ||
11 | Upstream Report: | 7 | Upstream-Status: Inappropriate [Upstream are unlikely to accept this change of default] |
12 | http://lists.gnu.org/archive/html/bug-libtool/2013-09/msg00005.html | ||
13 | 8 | ||
14 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00018.html] | 9 | --- |
10 | m4/libtool.m4 | 6 +++--- | ||
11 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
15 | 12 | ||
16 | Index: libtool-2.4.7/m4/libtool.m4 | 13 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 |
17 | =================================================================== | 14 | index 2f31d24..bd90775 100644 |
18 | --- libtool-2.4.7.orig/m4/libtool.m4 | 15 | --- a/m4/libtool.m4 |
19 | +++ libtool-2.4.7/m4/libtool.m4 | 16 | +++ b/m4/libtool.m4 |
20 | @@ -1254,16 +1254,20 @@ dnl lt_sysroot will always be passed unq | 17 | @@ -1254,18 +1254,18 @@ dnl lt_sysroot will always be passed unquoted. We quote it here |
21 | dnl in case the user passed a directory name. | 18 | dnl in case the user passed a directory name. |
22 | lt_sysroot= | 19 | lt_sysroot= |
23 | case $with_libtool_sysroot in #( | 20 | case $with_libtool_sysroot in #( |
24 | - yes) | 21 | - yes) |
25 | + no) | 22 | + no) |
26 | if test yes = "$GCC"; then | 23 | if test yes = "$GCC"; then |
27 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | 24 | # Trim trailing / since we'll always append absolute paths and we want |
28 | + # Treat "/" the same a an unset sysroot. | 25 | # to avoid //, if only for less confusing output for the user. |
29 | + if test "$lt_sysroot" = /; then | 26 | lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` |
30 | + lt_sysroot= | ||
31 | + fi | ||
32 | fi | 27 | fi |
33 | ;; #( | 28 | ;; #( |
34 | + yes|''|/) | 29 | + yes|''|/) |