libtool: Rename --with-sysroot to --with-libtool-sysroot
PATCH 1/5 libtool: Rename --with-sysroot to --with-libtool-sysroot
* To avoid name conflict with binutils and gcc we rename the option
* We also stage the cross and native libtool in same relative path so it can be accessed equally well from recipes using BBCLASSEXTEND = "native"
--- .../libtool/libtool-2.4/rename-with-sysroot.patch | 823 ++++++++++++++++++++ recipes/libtool/libtool-cross_2.2.6b.bb | 9 +- recipes/libtool/libtool-cross_2.4.bb | 10 +- recipes/libtool/libtool-native_2.4.bb | 2 +- recipes/libtool/libtool.inc | 3 +- 5 files changed, 837 insertions(+), 10 deletions(-) create mode 100644 recipes/libtool/libtool-2.4/rename-with-sysroot.patch
recipes/libtool/libtool-2.4/rename-with-sysroot.patch new file +823 -0
@@ -0,0 +1,823 @@ +This patch rename --with-sysroot option to --with-libtool-sysroot to avoid +namespace conflict with binutils, gcc and other toolchain components + +I also reported the problem to libtool here + +http://lists.gnu.org/archive/html/libtool/2010-10/msg00048.html + +-Khem + +Index: libtool-2.4/configure +=================================================================== +--- libtool-2.4.orig/configure ++++ libtool-2.4/configure +@@ -786,7 +786,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + with_gnu_ld + ' +@@ -1451,7 +1451,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -6798,29 +6798,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/libltdl/configure +=================================================================== +--- libtool-2.4.orig/libltdl/configure ++++ libtool-2.4/libltdl/configure +@@ -739,7 +739,7 @@ with_pic + enable_fast_install + enable_dependency_tracking + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + enable_ltdl_install + ' +@@ -1388,7 +1388,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -6004,29 +6004,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/libltdl/m4/libtool.m4 +=================================================================== +--- libtool-2.4.orig/libltdl/m4/libtool.m4 ++++ libtool-2.4/libltdl/m4/libtool.m4 +@@ -1180,27 +1180,27 @@ _LT_DECL([], [ECHO], [1], [An echo progr + # ---------------- + AC_DEFUN([_LT_WITH_SYSROOT], + [AC_MSG_CHECKING([for sysroot]) +-AC_ARG_WITH([sysroot], +-[ --with-sysroot[=DIR] Search for dependent libraries within DIR ++AC_ARG_WITH([libtool-sysroot], ++[ --with-libtool-sysroot[=DIR] Search for dependent libraries within DIR + (or the compiler's sysroot if not specified).], +-[], [with_sysroot=no]) ++[], [with_libtool_sysroot=no]) + + dnl lt_sysroot will always be passed unquoted. We quote it here + dnl in case the user passed a directory name. + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- AC_MSG_RESULT([${with_sysroot}]) ++ AC_MSG_RESULT([${with_libtool_sysroot}]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; + esac +Index: libtool-2.4/tests/cdemo/configure +=================================================================== +--- libtool-2.4.orig/tests/cdemo/configure ++++ libtool-2.4/tests/cdemo/configure +@@ -726,7 +726,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + ' + ac_precious_vars='build_alias +@@ -1373,7 +1373,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -5884,29 +5884,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/tests/demo/configure +=================================================================== +--- libtool-2.4.orig/tests/demo/configure ++++ libtool-2.4/tests/demo/configure +@@ -730,7 +730,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + ' + ac_precious_vars='build_alias +@@ -1377,7 +1377,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -5882,29 +5882,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/tests/depdemo/configure +=================================================================== +--- libtool-2.4.orig/tests/depdemo/configure ++++ libtool-2.4/tests/depdemo/configure +@@ -728,7 +728,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + ' + ac_precious_vars='build_alias +@@ -1375,7 +1375,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -5879,29 +5879,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/tests/f77demo/configure +=================================================================== +--- libtool-2.4.orig/tests/f77demo/configure ++++ libtool-2.4/tests/f77demo/configure +@@ -730,7 +730,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + ' + ac_precious_vars='build_alias +@@ -1382,7 +1382,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -6864,29 +6864,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/tests/fcdemo/configure +=================================================================== +--- libtool-2.4.orig/tests/fcdemo/configure ++++ libtool-2.4/tests/fcdemo/configure +@@ -731,7 +731,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + ' + ac_precious_vars='build_alias +@@ -1383,7 +1383,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -6963,29 +6963,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/tests/mdemo/configure +=================================================================== +--- libtool-2.4.orig/tests/mdemo/configure ++++ libtool-2.4/tests/mdemo/configure +@@ -734,7 +734,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + ' + ac_precious_vars='build_alias +@@ -1381,7 +1381,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -5911,29 +5911,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/tests/mdemo2/configure +=================================================================== +--- libtool-2.4.orig/tests/mdemo2/configure ++++ libtool-2.4/tests/mdemo2/configure +@@ -726,7 +726,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + ' + ac_precious_vars='build_alias +@@ -1373,7 +1373,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -5884,29 +5884,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/tests/pdemo/configure +=================================================================== +--- libtool-2.4.orig/tests/pdemo/configure ++++ libtool-2.4/tests/pdemo/configure +@@ -729,7 +729,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + ' + ac_precious_vars='build_alias +@@ -1376,7 +1376,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -5887,29 +5887,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/tests/sysroot.at +=================================================================== +--- libtool-2.4.orig/tests/sysroot.at ++++ libtool-2.4/tests/sysroot.at +@@ -64,7 +64,7 @@ while read file; do + done]) + + LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" +-configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix" ++configure_options="$configure_options --with-libtool-sysroot=$sysroot --prefix=$prefix" + + #??? + if test "$shlibpath_var" = PATH; then +@@ -114,7 +114,7 @@ AM_INIT_AUTOMAKE([foreign]) + AC_PROG_CC + AC_CONFIG_SRCDIR([lib2.c]) + LT_INIT +-sysroot=$with_sysroot ++sysroot=$with_libtool_sysroot + AC_SUBST([sysroot]) + AC_OUTPUT(Makefile) + ]]) +@@ -155,7 +155,7 @@ AM_INIT_AUTOMAKE([foreign]) + AC_PROG_CC + AC_CONFIG_SRCDIR([prog.c]) + LT_INIT +-sysroot=$with_sysroot ++sysroot=$with_libtool_sysroot + AC_SUBST([sysroot]) + AC_OUTPUT(Makefile) + ]]) +Index: libtool-2.4/tests/tagdemo/configure +=================================================================== +--- libtool-2.4.orig/tests/tagdemo/configure ++++ libtool-2.4/tests/tagdemo/configure +@@ -736,7 +736,7 @@ enable_static + with_pic + enable_fast_install + with_gnu_ld +-with_sysroot ++with_libtool_sysroot + enable_libtool_lock + with_gnu_ld + ' +@@ -1392,7 +1392,7 @@ Optional Packages: + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] +- --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + + Some influential environment variables: +@@ -6907,29 +6907,29 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 + $as_echo_n "checking for sysroot... " >&6; } + +-# Check whether --with-sysroot was given. +-if test "${with_sysroot+set}" = set; then : +- withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; + else +- with_sysroot=no ++ with_libtool_sysroot=no + fi + + + lt_sysroot= +-case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) +- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +-$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; + esac +Index: libtool-2.4/tests/testsuite +=================================================================== +--- libtool-2.4.orig/tests/testsuite ++++ libtool-2.4/tests/testsuite +@@ -25277,7 +25277,7 @@ $at_traceon; } + + + LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" +-configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix" ++configure_options="$configure_options --with-libtool-sysroot=$sysroot --prefix=$prefix" + + #??? + if test "$shlibpath_var" = PATH; then +@@ -25475,7 +25475,7 @@ AM_INIT_AUTOMAKE([foreign]) + AC_PROG_CC + AC_CONFIG_SRCDIR([lib2.c]) + LT_INIT +-sysroot=$with_sysroot ++sysroot=$with_libtool_sysroot + AC_SUBST([sysroot]) + AC_OUTPUT(Makefile) + _ATEOF +@@ -25652,7 +25652,7 @@ AM_INIT_AUTOMAKE([foreign]) + AC_PROG_CC + AC_CONFIG_SRCDIR([prog.c]) + LT_INIT +-sysroot=$with_sysroot ++sysroot=$with_libtool_sysroot + AC_SUBST([sysroot]) + AC_OUTPUT(Makefile) + _ATEOF +@@ -25993,7 +25993,7 @@ $at_traceon; } + + + LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" +-configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix" ++configure_options="$configure_options --with-libtool-sysroot=$sysroot --prefix=$prefix" + + #??? + if test "$shlibpath_var" = PATH; then +@@ -26191,7 +26191,7 @@ AM_INIT_AUTOMAKE([foreign]) + AC_PROG_CC + AC_CONFIG_SRCDIR([lib2.c]) + LT_INIT +-sysroot=$with_sysroot ++sysroot=$with_libtool_sysroot + AC_SUBST([sysroot]) + AC_OUTPUT(Makefile) + _ATEOF +@@ -26368,7 +26368,7 @@ AM_INIT_AUTOMAKE([foreign]) + AC_PROG_CC + AC_CONFIG_SRCDIR([prog.c]) + LT_INIT +-sysroot=$with_sysroot ++sysroot=$with_libtool_sysroot + AC_SUBST([sysroot]) + AC_OUTPUT(Makefile) + _ATEOF +@@ -26709,7 +26709,7 @@ $at_traceon; } + + + LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" +-configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix" ++configure_options="$configure_options --with-libtool-sysroot=$sysroot --prefix=$prefix" + + #??? + if test "$shlibpath_var" = PATH; then +@@ -26907,7 +26907,7 @@ AM_INIT_AUTOMAKE([foreign]) + AC_PROG_CC + AC_CONFIG_SRCDIR([lib2.c]) + LT_INIT +-sysroot=$with_sysroot ++sysroot=$with_libtool_sysroot + AC_SUBST([sysroot]) + AC_OUTPUT(Makefile) + _ATEOF +@@ -27084,7 +27084,7 @@ AM_INIT_AUTOMAKE([foreign]) + AC_PROG_CC + AC_CONFIG_SRCDIR([prog.c]) + LT_INIT +-sysroot=$with_sysroot ++sysroot=$with_libtool_sysroot + AC_SUBST([sysroot]) + AC_OUTPUT(Makefile) + _ATEOF
recipes/libtool/libtool-cross_2.2.6b.bb +5 -4
@@ -1,5 +1,5 @@ require libtool_${PV}.bb -PR = "${INC_PR}.0" +PR = "${INC_PR}.1" SRC_URI += "\ file://cross_compile.patch \
@@ -27,10 +27,11 @@ do_install () { install -d ${D}${bindir}/ install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool install -d ${D}${datadir}/libtool/ + install -d ${D}${datadir}/libtool/config/ install -d ${D}${datadir}/aclocal/ - install -c ${S}/libltdl/config/config.guess ${D}${datadir}/libtool/ - install -c ${S}/libltdl/config/config.sub ${D}${datadir}/libtool/ - install -c -m 0644 ${S}/libltdl/config/ltmain.sh ${D}${datadir}/libtool/ + install -c ${S}/libltdl/config/config.guess ${D}${datadir}/libtool/config/ + install -c ${S}/libltdl/config/config.sub ${D}${datadir}/libtool/config/ + install -c -m 0644 ${S}/libltdl/config/ltmain.sh ${D}${datadir}/libtool/config/ install -c -m 0644 ${S}/libltdl/m4/libtool.m4 ${D}${datadir}/aclocal/ install -c -m 0644 ${S}/libltdl/m4/ltdl.m4 ${D}${datadir}/aclocal/ if [ -e ${WORKDIR}/dolt.m4 ] ; then
recipes/libtool/libtool-cross_2.4.bb +6 -4
@@ -1,5 +1,5 @@ require libtool.inc -PR = "${INC_PR}.1" +PR = "${INC_PR}.2" DEFAULT_PREFERENCE = "-1"
@@ -21,10 +21,11 @@ do_install () { install -d ${D}${bindir}/ install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool install -d ${D}${datadir}/libtool/ + install -d ${D}${datadir}/libtool/config install -d ${D}${datadir}/aclocal/ - install -c ${S}/libltdl/config/config.guess ${D}${datadir}/libtool/ - install -c ${S}/libltdl/config/config.sub ${D}${datadir}/libtool/ - install -c -m 0644 ${S}/libltdl/config/ltmain.sh ${D}${datadir}/libtool/ + install -c ${S}/libltdl/config/config.guess ${D}${datadir}/libtool/config/ + install -c ${S}/libltdl/config/config.sub ${D}${datadir}/libtool/config/ + install -c -m 0644 ${S}/libltdl/config/ltmain.sh ${D}${datadir}/libtool/config/ install -c -m 0644 ${S}/libltdl/m4/libtool.m4 ${D}${datadir}/aclocal/ install -c -m 0644 ${S}/libltdl/m4/ltdl.m4 ${D}${datadir}/aclocal/ }
@@ -35,3 +36,4 @@ libtoolcross_sysroot_preprocess () { install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/ install -m 755 ${D}${bindir}/${HOST_SYS}-libtool ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool } +NATIVE_INSTALL_WORKS = "1"
recipes/libtool/libtool-native_2.4.bb +1 -1
@@ -11,7 +11,7 @@ SRC_URI[md5sum] = "b32b04148ecdd7344abc6fe8bd1bb021" SRC_URI[sha256sum] = "13df57ab63a94e196c5d6e95d64e53262834fe780d5e82c28f177f9f71ddf62e" inherit native -EXTRA_OECONF = " --with-sysroot=${STAGING_DIR_NATIVE}" +EXTRA_OECONF = " --with-libtool-sysroot=${STAGING_DIR_NATIVE}" do_configure_prepend () { # Remove any existing libtool m4 since old stale versions would break # any upgrade
recipes/libtool/libtool.inc +2 -1
@@ -6,7 +6,7 @@ HOMEPAGE = "http://www.gnu.org/software/libtool/libtool.html" LICENSE = "GPL" SECTION = "devel" -INC_PR = "r26" +INC_PR = "r27" FILESPATHPKG=. "libtool-${PV}:"
@@ -17,6 +17,7 @@ FILESPATHPKG=. "libtool-${PV}:" SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ file://trailingslash.patch \ file://prefix-manpage-fix.patch \ + file://rename-with-sysroot.patch \ file://resolve-sysroot.patch \ file://use-sysroot-in-libpath.patch \ "
Signature · 1 line
1.7.1
PATCH 2/5 openldap_2.4.23.bb: Fetch ltmain.sh from the new location in staging
--- recipes/openldap/openldap_2.4.23.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/openldap/openldap_2.4.23.bb +1 -1
@@ -188,7 +188,7 @@ DEPENDS += "${OPENLDAP_DEPENDS}" CPPFLAGS_append = " -D_GNU_SOURCE" do_configure() { - cp ${STAGING_DATADIR}/libtool/ltmain.sh ${S}/build + cp ${STAGING_DATADIR}/libtool/config/ltmain.sh ${S}/build rm -f ${S}/libtool aclocal libtoolize --force --copy
Signature · 1 line
1.7.1
PATCH 3/5 autotools.bbclass: Use --with-libtool-sysroot instead of --with-sysroot
In reply to Khem Raj--- classes/autotools.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
classes/autotools.bbclass +1 -1
@@ -76,7 +76,7 @@ CONFIGUREOPTS = " --build=${BUILD_SYS} \ --oldincludedir=${oldincludedir} \ --infodir=${infodir} \ --mandir=${mandir} \ - ${@["","--with-sysroot"][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == "yes"]} \ + ${@["","--with-libtool-sysroot"][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == "yes"]} \ " oe_runconf () {
Signature · 1 line
1.7.1
PATCH 4/5 binutils: Update libtool macros to reflect --with-sysroot -> --with-libtool-sysroot rename
In reply to Khem Raj* We dont need to filter out with-sysroot anymore
--- .../binutils-2.20.1/libtool-2.4-update.patch | 128 ++++++++++---------- recipes/binutils/binutils.inc | 6 +- 2 files changed, 65 insertions(+), 69 deletions(-)
recipes/binutils/binutils-2.20.1/libtool-2.4-update.patch +64 -64
@@ -7262,26 +7262,26 @@ Index: binutils-2.20.1/libtool.m4 +AC_DEFUN([_LT_WITH_SYSROOT], +[AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], -+[ --with-sysroot[=DIR] Search for dependent libraries within DIR ++[ --with-libtool-sysroot[=DIR] Search for dependent libraries within DIR + (or the compiler's sysroot if not specified).], -+[], [with_sysroot=no]) ++[], [with_libtool_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= -+case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) -+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) -+ AC_MSG_RESULT([${with_sysroot}]) ++ AC_MSG_RESULT([${with_libtool_sysroot}]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac
@@ -10159,7 +10159,7 @@ Index: binutils-2.20.1/bfd/configure with_pic enable_fast_install with_gnu_ld -+with_sysroot ++with_libtool_sysroot enable_libtool_lock enable_plugins enable_largefile
@@ -10167,7 +10167,7 @@ Index: binutils-2.20.1/bfd/configure --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] -+ --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). --with-mmap try using mmap for BFD input files if available --with-separate-debug-dir=DIR
@@ -11076,29 +11076,29 @@ Index: binutils-2.20.1/bfd/configure +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + -+# Check whether --with-sysroot was given. -+if test "${with_sysroot+set}" = set; then : -+ withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; +else -+ with_sysroot=no ++ with_libtool_sysroot=no +fi + + +lt_sysroot= -+case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) -+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 -+$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac
@@ -13709,7 +13709,7 @@ Index: binutils-2.20.1/binutils/configure with_pic enable_fast_install with_gnu_ld -+with_sysroot ++with_libtool_sysroot enable_libtool_lock enable_targets enable_werror
@@ -13717,7 +13717,7 @@ Index: binutils-2.20.1/binutils/configure --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] -+ --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
@@ -14639,29 +14639,29 @@ Index: binutils-2.20.1/binutils/configure +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + -+# Check whether --with-sysroot was given. -+if test "${with_sysroot+set}" = set; then : -+ withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; +else -+ with_sysroot=no ++ with_libtool_sysroot=no +fi + + +lt_sysroot= -+case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) -+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 -+$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac
@@ -17293,7 +17293,7 @@ Index: binutils-2.20.1/gas/configure with_pic enable_fast_install with_gnu_ld -+with_sysroot ++with_libtool_sysroot enable_libtool_lock enable_targets enable_checking
@@ -17301,7 +17301,7 @@ Index: binutils-2.20.1/gas/configure --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] -+ --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). Some influential environment variables:
@@ -18224,29 +18224,29 @@ Index: binutils-2.20.1/gas/configure +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + -+# Check whether --with-sysroot was given. -+if test "${with_sysroot+set}" = set; then : -+ withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; +else -+ with_sysroot=no ++ with_libtool_sysroot=no +fi + + +lt_sysroot= -+case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) -+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 -+$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac
@@ -20847,7 +20847,7 @@ Index: binutils-2.20.1/gprof/configure with_pic enable_fast_install with_gnu_ld -+with_sysroot ++with_libtool_sysroot enable_libtool_lock enable_nls enable_maintainer_mode
@@ -20855,7 +20855,7 @@ Index: binutils-2.20.1/gprof/configure --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] -+ --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). Some influential environment variables:
@@ -21786,29 +21786,29 @@ Index: binutils-2.20.1/gprof/configure +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + -+# Check whether --with-sysroot was given. -+if test "${with_sysroot+set}" = set; then : -+ withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; +else -+ with_sysroot=no ++ with_libtool_sysroot=no +fi + + +lt_sysroot= -+case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) -+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 -+$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac
@@ -24363,7 +24363,7 @@ Index: binutils-2.20.1/ld/configure --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] -+ --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). Some influential environment variables:
@@ -25288,29 +25288,29 @@ Index: binutils-2.20.1/ld/configure +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + -+# Check whether --with-sysroot was given. -+if test "${with_sysroot+set}" = set; then : -+ withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; +else -+ with_sysroot=no ++ with_libtool_sysroot=no +fi + + +lt_sysroot= -+case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) -+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 -+$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac
@@ -27826,7 +27826,7 @@ Index: binutils-2.20.1/opcodes/configure with_pic enable_fast_install with_gnu_ld -+with_sysroot ++with_libtool_sysroot enable_libtool_lock enable_targets enable_werror
@@ -27834,7 +27834,7 @@ Index: binutils-2.20.1/opcodes/configure --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] -+ --with-sysroot=DIR Search for dependent libraries within DIR ++ --with-libtool-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). Some influential environment variables:
@@ -28744,29 +28744,29 @@ Index: binutils-2.20.1/opcodes/configure +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + -+# Check whether --with-sysroot was given. -+if test "${with_sysroot+set}" = set; then : -+ withval=$with_sysroot; ++# Check whether --with-libtool-sysroot was given. ++if test "${with_libtool_sysroot+set}" = set; then : ++ withval=$with_libtool_sysroot; +else -+ with_sysroot=no ++ with_libtool_sysroot=no +fi + + +lt_sysroot= -+case ${with_sysroot} in #( ++case ${with_libtool_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) -+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ++ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 -+$as_echo "${with_sysroot}" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5 ++$as_echo "${with_libtool_sysroot}" >&6; } + as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac
recipes/binutils/binutils.inc +1 -5
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/binutils/" SECTION = "devel" LICENSE = "GPL" -INC_PR = "r12" +INC_PR = "r13" COMPATIBLE_TARGET_SYS ?= "(?!nios2)"
@@ -42,10 +42,6 @@ B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ --enable-shared" -python __anonymous () { - cfg = oe_filter_out('--with-sysroot$' , bb.data.getVar('CONFIGUREOPTS', d, 1) or "", d) - bb.data.setVar('CONFIGUREOPTS', cfg, d) -} # This is necessary due to a bug in the binutils Makefiles EXTRA_OEMAKE = "configure-build-libiberty all"
Signature · 1 line
1.7.1
Re: [PATCH 4/5] binutils: Update libtool macros to reflect --with-sysroot -> --with-libtool-sysroot rename
Quoted 18 lines · Khem Raj
* We dont need to filter out with-sysroot anymore
Signed-off-by Khem Raj <[email protected]>recipes/binutils/binutils.inc +1
-1@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/binutils/" SECTION = "devel" LICENSE = "GPL" -INC_PR = "r12" +INC_PR = "r13" COMPATIBLE_TARGET_SYS ?= "(?!nios2)"
recipes/binutils/binutils.inc B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" · line 48
Quoted 7 lines
recipes/binutils/binutils.inc +0
-4@@ -42,10 +42,6 @@ B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ --enable-shared" -python __anonymous () { - cfg = oe_filter_out('--with-sysroot$' , bb.data.getVar('CONFIGUREOPTS', d, 1) or "", d) - bb.data.setVar('CONFIGUREOPTS', cfg, d) -}
Nice! That anonymous function was giving me all sorts of issues. I'm all for removing it, but unfortunately I already re-structured my code to work it around... :)
Signature · 1 line
Denys
Quoted 4 lines
recipes/binutils/binutils.inc +0
-0# This is necessary due to a bug in the binutils Makefiles EXTRA_OEMAKE = "configure-build-libiberty all"Signature · 1 line
1.7.1
PATCH 5/5 gcc-configure-target.inc: --with-sysroot -> --with-libtool-sysroot rename means we dont need to filter out --with-sysroot
In reply to Khem Raj--- recipes/gcc/gcc-4.5.inc | 2 +- recipes/gcc/gcc-configure-target.inc | 1 - 2 files changed, 1 insertions(+), 2 deletions(-)
recipes/gcc/gcc-4.5.inc +1 -1
@@ -8,7 +8,7 @@ DEPENDS = "mpfr gmp libmpc libelf" NATIVEDEPS = "mpfr-native gmp-native libmpc-native" -INC_PR = "r13" +INC_PR = "r14" SRCREV = "164562" PV = "4.5"
recipes/gcc/gcc-configure-target.inc +0 -1
@@ -5,4 +5,3 @@ EXTRA_OECONF_PATHS = " \ --with-gxx-include-dir=${includedir}/c++/${BINV} \ --with-build-sysroot=${STAGING_DIR_HOST} \ " -CONFIGUREOPTS := "${@oe_filter_out('--with-sysroot', '${CONFIGUREOPTS}', d)}"
Signature · 1 line
1.7.1
Re: [PATCH 5/5] gcc-configure-target.inc: --with-sysroot -> --with-libtool-sysroot rename means we dont need to filter out --with-sysroot
Dear Khem,
I would have squashed several of these patches if someone is using git bisect.
You already pushed this series though, so thanks for your work anyway.
Thanks,
Paul
Quoted 7 lines · Khem Raj
* To avoid name conflict with binutils and gcc we rename the option
* We also stage the cross and native libtool in same relative path so it can be accessed equally well from recipes using BBCLASSEXTEND =
"native"Signed-off-by Khem Raj <[email protected]>
I'm going to assume you've got the code end of things down, and not bother reviewing it in depth, as I'm no libtool code expert, but you have my ack for the concept :)
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Koen Kooi
Acked-by-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 7 lines · Chris Larson
Quoted 5 lines · Khem Raj
* To avoid name conflict with binutils and gcc we rename the option
* We also stage the cross and native libtool in same relative path so it can be accessed equally well from recipes using BBCLASSEXTEND =
"native"
Quoted 8 lines
Quoted 2 lines
Signed-off-by Khem Raj <[email protected]>I'm going to assume you've got the code end of things down, and not bother reviewing it in depth, as I'm no libtool code expert, but you have my ack for the concept :)
Acked-by Chris Larson <[email protected]>
What Chris said :)
For the complete series:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMwabtMkyGM64RGpERAhBqAKCbjaVmSKnXQSnVWKhFPRsEr8H9UwCfUw0Y dMBKvOtN/Mp/CxPcRODKMnU=
=E4vz
-----END PGP SIGNATURE-----