Return-Path: This patch updates libtool.m4 (and its output) to res=
olve a problem with variable 'lt_sysroot' not being proper=
ly updated if the option '--with[-libtool]-sysroot' is not p=
rovided when running the 'configure' script for a package=
. According to the help text ouput from 'conf=
igure': --with-libtool-sysroot=3DDIR Search for dependent=
libraries within DIR  =
; &nb=
sp; (or the compiler's sysrooot if not specified). Due to swapped cases in a switch statement, when che=
cking if the option was specified or not, wrong actions w=
ere taken resulting in an incorrect sysroot and failures to p=
roperly locate e.g. .la files. For current up=
stream status see: http://lists.gnu.org/archive/html/bug-libtool/2013-09/msg=
00005.html Signed-off-by: Hans Be=
ckerus <hans.beckerus at gmail.com> --- =
meta/recipes-devtools/libtool/libtool-2.4.2.inc | 1 +=
.../libtool/libtool/fix-resolve-lt-sysroot.patch &n=
bsp; | 35 ++++++++++++++++++++++ 2 files changed, 36 inse=
rtions(+) create mode 100644 meta/recipes-devtools/libtoo=
l/libtool/fix-resolve-lt-sysroot.patch diff -=
-git a/meta/recipes-devtools/libtool/libtool-2.4.2.inc b/meta/recipes-devtoo=
ls/libtool/libtool-2.4.2.inc index bb4ddf0..92e4949 10064=
4 --- a/meta/recipes-devtools/libtool/libtool-2.4.2.inc +++ b/meta/recipes-devtools/libtool/libtool-2.4.2.inc @@ -20,6 +20,7 @@ SRC_URI =3D "${GNU_MIRROR}/libtool/libtool-$=
{PV}.tar.gz \ &=
nbsp; file://respect-f=
stack-protector.patch \ &nbs=
p; file://norm-rpath.patch \ =
file://do=
nt-depend-on-help2man.patch \ + &nb=
sp; file://fix-resolve-lt-sysroot.patch \ "=
SRC_URI[md5sum] =3D "d2f3b7d46=
27e69e13514a40e72a24d50" diff --git a/meta/recipes-devtools=
/libtool/libtool/fix-resolve-lt-sysroot.patch b/meta/recipes-devtools/libtoo=
l/libtool/fix-resolve-lt-sysroot.patch new file mode 1006=
44 index 0000000..5a6335b --- /dev/null @@ -0,0 +1,35 @@ + +Upstream-Status: Pending ++++ b/meta/recipes-devtools/libtool/libtool/fix-resolve-lt-sysro=
ot.patch
+with variable 'lt_sysroot' not being properly updated if the optio=
n
+'--with[-libtool]-sysroot' is not provided when runnin=
g the 'configure'
+script for a package.
+
+I have also reported the problem to libtool here
+
+http=
://lists.gnu.org/archive/html/bug-libtool/2013-09/msg00005.html
+Signed-off-by: Hans Beckerus <hans.becke=
rus at gmail=
.com>
+---
+diff -ur libtool-2.=
4.2.orig/libltdl/m4/libtool.m4 libtool-2.4.2/libltdl/m4/libtool.m4
++++ libtool-2.4.2/libltdl/m4/libtool.m4 2013-09-05 12:05:=
51.560281000 +0200
+@@ -1234,7 +1234,7 @@
+ dnl in case the user passed a directory name.
+ lt_s=
ysroot=3D
+ case ${with_libtool_sysroot} in #(
+- yes)
++ no)
+ &=
nbsp; if test "$GCC" =3D yes; then
+ &nb=
sp; lt_sysroot=3D`$CC --print-sysroot 2>/dev/null`
+ fi
+@@ -1242,7 +1242,7 @@
+ /*)
+ lt_sysroot=3D`echo=
"$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
+- no|'')
++ yes=
|'')
+ ;; #(
+ =
*)
+ AC_MSG_RESULT([${with_libtool_sys=
root}])
--
1.8.3.3
= --Apple-Mail-D6895395-3F18-4ED2-A1B4-6F876DFA564A--