summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch
diff options
context:
space:
mode:
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.patch15
1 files changed, 7 insertions, 8 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 999971241f..a221dab528 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
@@ -13,11 +13,11 @@ http://lists.gnu.org/archive/html/bug-libtool/2013-09/msg00005.html
13 13
14Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00018.html] 14Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00018.html]
15 15
16--- 16Index: libtool-2.4.7/m4/libtool.m4
17diff --git a/m4/libtool.m4 b/m4/libtool.m4 17===================================================================
18--- a/m4/libtool.m4 18--- libtool-2.4.7.orig/m4/libtool.m4
19+++ b/m4/libtool.m4 19+++ libtool-2.4.7/m4/libtool.m4
20@@ -1225,16 +1225,21 @@ dnl lt_sysroot will always be passed unquoted. We quote it here 20@@ -1254,16 +1254,20 @@ dnl lt_sysroot will always be passed unq
21 dnl in case the user passed a directory name. 21 dnl in case the user passed a directory name.
22 lt_sysroot= 22 lt_sysroot=
23 case $with_libtool_sysroot in #( 23 case $with_libtool_sysroot in #(
@@ -25,8 +25,7 @@ diff --git a/m4/libtool.m4 b/m4/libtool.m4
25+ no) 25+ no)
26 if test yes = "$GCC"; then 26 if test yes = "$GCC"; then
27 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 27 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
28+ # Treat "/" the same a an unset sysroot. It seems to be more 28+ # Treat "/" the same a an unset sysroot.
29+ # compatible across host platforms that way!?
30+ if test "$lt_sysroot" = /; then 29+ if test "$lt_sysroot" = /; then
31+ lt_sysroot= 30+ lt_sysroot=
32+ fi 31+ fi
@@ -35,7 +34,7 @@ diff --git a/m4/libtool.m4 b/m4/libtool.m4
35+ yes|''|/) 34+ yes|''|/)
36+ ;; #( 35+ ;; #(
37 /*) 36 /*)
38 lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` 37 lt_sysroot=`echo "$with_libtool_sysroot" | $SED -e "$sed_quote_subst"`
39 ;; #( 38 ;; #(
40- no|'') 39- no|'')
41- ;; #( 40- ;; #(