diff options
20 files changed, 96 insertions, 343 deletions
diff --git a/meta/recipes-devtools/libtool/libtool-2.4.7.inc b/meta/recipes-devtools/libtool/libtool-2.5.0.inc index 16bb10d48f..dd6215476e 100644 --- a/meta/recipes-devtools/libtool/libtool-2.4.7.inc +++ b/meta/recipes-devtools/libtool/libtool-2.5.0.inc | |||
| @@ -8,26 +8,22 @@ LICENSE = "GPL-2.0-only & LGPL-2.1-only" | |||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 9 | file://libltdl/COPYING.LIB;md5=4fbd65380cdd255951079008b364516c " | 9 | file://libltdl/COPYING.LIB;md5=4fbd65380cdd255951079008b364516c " |
| 10 | 10 | ||
| 11 | SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ | 11 | SRC_URI = "https://alpha.gnu.org/gnu/libtool/libtool-${PV}.tar.gz \ |
| 12 | file://0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch \ | 12 | file://0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch \ |
| 13 | file://0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch \ | 13 | file://0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch \ |
| 14 | file://0003-ltmain.in-Add-missing-sysroot-to-library-path.patch \ | 14 | file://0003-ltmain.in-Add-missing-sysroot-to-library-path.patch \ |
| 15 | file://0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch \ | 15 | file://0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch \ |
| 16 | file://0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch \ | 16 | file://0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch \ |
| 17 | file://dont-depend-on-help2man.patch \ | 17 | file://dont-depend-on-help2man.patch \ |
| 18 | file://0003-libtool.m4-Cleanup-sysroot-trailing.patch \ | ||
| 19 | file://0006-libtool.m4-Handle-as-a-sysroot-correctly.patch \ | 18 | file://0006-libtool.m4-Handle-as-a-sysroot-correctly.patch \ |
| 20 | file://nohardcodepaths.patch \ | ||
| 21 | file://0007-libtool-Fix-support-for-NIOS2-processor.patch \ | ||
| 22 | file://0008-libtool-Check-for-static-libs-for-internal-compiler-.patch \ | 19 | file://0008-libtool-Check-for-static-libs-for-internal-compiler-.patch \ |
| 23 | file://0009-Makefile.am-make-sure-autoheader-run-before-autoconf.patch \ | 20 | file://nohardcodepaths.patch \ |
| 24 | file://0010-Makefile.am-make-sure-autoheader-run-before-automake.patch \ | 21 | file://filefix.patch \ |
| 25 | file://0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch \ | ||
| 26 | file://0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch \ | ||
| 27 | file://0001-ltmain.in-Parse-additional-clang-options.patch \ | ||
| 28 | " | 22 | " |
| 29 | 23 | ||
| 30 | SRC_URI[sha256sum] = "04e96c2404ea70c590c546eba4202a4e12722c640016c12b9b2f1ce3d481e9a8" | 24 | |
| 25 | |||
| 26 | SRC_URI[sha256sum] = "d438c317455d85554ce2f998be48866fd40cfcbf834d60b3026f4fc0ed583d23" | ||
| 31 | 27 | ||
| 32 | do_compile:prepend () { | 28 | do_compile:prepend () { |
| 33 | # Sometimes this file doesn't get rebuilt, force the issue | 29 | # Sometimes this file doesn't get rebuilt, force the issue |
diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.4.7.bb b/meta/recipes-devtools/libtool/libtool-cross_2.5.0.bb index 93f1dd7825..93f1dd7825 100644 --- a/meta/recipes-devtools/libtool/libtool-cross_2.4.7.bb +++ b/meta/recipes-devtools/libtool/libtool-cross_2.5.0.bb | |||
diff --git a/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb b/meta/recipes-devtools/libtool/libtool-native_2.5.0.bb index 19024f7830..19024f7830 100644 --- a/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb +++ b/meta/recipes-devtools/libtool/libtool-native_2.5.0.bb | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch b/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch index 51c0c52da8..d5d906e6b6 100644 --- a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch +++ b/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch | |||
| @@ -14,11 +14,11 @@ Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | |||
| 14 | 14 | ||
| 15 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00010.html] | 15 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00010.html] |
| 16 | 16 | ||
| 17 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 17 | Index: libtool-2.5.0/build-aux/ltmain.in |
| 18 | index a5f21a1..f884824 100644 | 18 | =================================================================== |
| 19 | --- a/build-aux/ltmain.in | 19 | --- libtool-2.5.0.orig/build-aux/ltmain.in |
| 20 | +++ b/build-aux/ltmain.in | 20 | +++ libtool-2.5.0/build-aux/ltmain.in |
| 21 | @@ -2381,8 +2381,14 @@ func_mode_install () | 21 | @@ -2382,8 +2382,14 @@ func_mode_install () |
| 22 | func_append dir "$objdir" | 22 | func_append dir "$objdir" |
| 23 | 23 | ||
| 24 | if test -n "$relink_command"; then | 24 | if test -n "$relink_command"; then |
| @@ -34,6 +34,3 @@ index a5f21a1..f884824 100644 | |||
| 34 | 34 | ||
| 35 | # Don't allow the user to place us outside of our expected | 35 | # Don't allow the user to place us outside of our expected |
| 36 | # location b/c this prevents finding dependent libraries that | 36 | # location b/c this prevents finding dependent libraries that |
| 37 | -- | ||
| 38 | 2.25.1 | ||
| 39 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch b/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch deleted file mode 100644 index c52083327c..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | ltmain.in: Parse additional clang options | ||
| 2 | |||
| 3 | clang uses -rtlib and --unwindlib to select proper compiler | ||
| 4 | runtime in some cases. Therefore pass these options to linker when found in | ||
| 5 | ldflags | ||
| 6 | |||
| 7 | * build-aux/ltmain.in: Handle clang linker options | ||
| 8 | |||
| 9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 10 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=725646bf095bf5c07c49ae38dd060f95bd95ae3c] | ||
| 11 | |||
| 12 | --- | ||
| 13 | build-aux/ltmain.in | 4 +++- | ||
| 14 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | ||
| 17 | index 037f009..ba5c816 100644 | ||
| 18 | --- a/build-aux/ltmain.in | ||
| 19 | +++ b/build-aux/ltmain.in | ||
| 20 | @@ -5414,10 +5414,12 @@ func_mode_link () | ||
| 21 | # -fsanitize=* Clang/GCC memory and address sanitizer | ||
| 22 | # -fuse-ld=* Linker select flags for GCC | ||
| 23 | # -f{file|debug|macro|profile}-prefix-map* needed for lto linking | ||
| 24 | + # -rtlib=* select c runtime lib with clang | ||
| 25 | + # --unwindlib=* select unwinder library with clang | ||
| 26 | # -Wa,* Pass flags directly to the assembler | ||
| 27 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ | ||
| 28 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | ||
| 29 | - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ | ||
| 30 | + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*|-rtlib=*|--unwindlib=*| \ | ||
| 31 | -specs=*|-fsanitize=*|-fuse-ld=*|-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*|-Wa,*) | ||
| 32 | func_quote_arg pretty "$arg" | ||
| 33 | arg=$func_quote_arg_result | ||
diff --git a/meta/recipes-devtools/libtool/libtool/0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch b/meta/recipes-devtools/libtool/libtool/0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch index 2126f82953..156622bb54 100644 --- a/meta/recipes-devtools/libtool/libtool/0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch +++ b/meta/recipes-devtools/libtool/libtool/0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch | |||
| @@ -13,11 +13,11 @@ http://lists.gnu.org/archive/html/libtool/2010-10/msg00048.html | |||
| 13 | 13 | ||
| 14 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00014.html] | 14 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00014.html] |
| 15 | 15 | ||
| 16 | Index: libtool-2.4.7/m4/libtool.m4 | 16 | Index: libtool-2.5.0/m4/libtool.m4 |
| 17 | =================================================================== | 17 | =================================================================== |
| 18 | --- libtool-2.4.7.orig/m4/libtool.m4 | 18 | --- libtool-2.5.0.orig/m4/libtool.m4 |
| 19 | +++ libtool-2.4.7/m4/libtool.m4 | 19 | +++ libtool-2.5.0/m4/libtool.m4 |
| 20 | @@ -1244,28 +1244,28 @@ _LT_DECL([], [ECHO], [1], [An echo progr | 20 | @@ -1243,16 +1243,16 @@ _LT_DECL([], [ECHO], [1], [An echo progr |
| 21 | AC_DEFUN([_LT_WITH_SYSROOT], | 21 | AC_DEFUN([_LT_WITH_SYSROOT], |
| 22 | [m4_require([_LT_DECL_SED])dnl | 22 | [m4_require([_LT_DECL_SED])dnl |
| 23 | AC_MSG_CHECKING([for sysroot]) | 23 | AC_MSG_CHECKING([for sysroot]) |
| @@ -37,7 +37,8 @@ Index: libtool-2.4.7/m4/libtool.m4 | |||
| 37 | +case $with_libtool_sysroot in #( | 37 | +case $with_libtool_sysroot in #( |
| 38 | yes) | 38 | yes) |
| 39 | if test yes = "$GCC"; then | 39 | if test yes = "$GCC"; then |
| 40 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | 40 | # Trim trailing / since we'll always append absolute paths and we want |
| 41 | @@ -1261,12 +1261,12 @@ case $with_sysroot in #( | ||
| 41 | fi | 42 | fi |
| 42 | ;; #( | 43 | ;; #( |
| 43 | /*) | 44 | /*) |
| @@ -52,10 +53,10 @@ Index: libtool-2.4.7/m4/libtool.m4 | |||
| 52 | AC_MSG_ERROR([The sysroot must be an absolute path.]) | 53 | AC_MSG_ERROR([The sysroot must be an absolute path.]) |
| 53 | ;; | 54 | ;; |
| 54 | esac | 55 | esac |
| 55 | Index: libtool-2.4.7/tests/sysroot.at | 56 | Index: libtool-2.5.0/tests/sysroot.at |
| 56 | =================================================================== | 57 | =================================================================== |
| 57 | --- libtool-2.4.7.orig/tests/sysroot.at | 58 | --- libtool-2.5.0.orig/tests/sysroot.at |
| 58 | +++ libtool-2.4.7/tests/sysroot.at | 59 | +++ libtool-2.5.0/tests/sysroot.at |
| 59 | @@ -65,7 +65,7 @@ while read file; do | 60 | @@ -65,7 +65,7 @@ while read file; do |
| 60 | done]) | 61 | done]) |
| 61 | 62 | ||
| @@ -83,11 +84,11 @@ Index: libtool-2.4.7/tests/sysroot.at | |||
| 83 | AC_SUBST([sysroot]) | 84 | AC_SUBST([sysroot]) |
| 84 | AC_OUTPUT(Makefile) | 85 | AC_OUTPUT(Makefile) |
| 85 | ]]) | 86 | ]]) |
| 86 | diff --git a/tests/testsuite b/tests/testsuite | 87 | Index: libtool-2.5.0/tests/testsuite |
| 87 | index 24265e4..d388e3e 100755 | 88 | =================================================================== |
| 88 | --- a/tests/testsuite | 89 | --- libtool-2.5.0.orig/tests/testsuite |
| 89 | +++ b/tests/testsuite | 90 | +++ libtool-2.5.0/tests/testsuite |
| 90 | @@ -48997,7 +48997,7 @@ $at_traceon; } | 91 | @@ -49054,7 +49054,7 @@ $at_traceon; } |
| 91 | 92 | ||
| 92 | 93 | ||
| 93 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" | 94 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" |
| @@ -96,7 +97,7 @@ index 24265e4..d388e3e 100755 | |||
| 96 | 97 | ||
| 97 | #??? | 98 | #??? |
| 98 | if test PATH = "$shlibpath_var"; then | 99 | if test PATH = "$shlibpath_var"; then |
| 99 | @@ -49211,7 +49211,7 @@ AM_INIT_AUTOMAKE([foreign]) | 100 | @@ -49269,7 +49269,7 @@ AM_INIT_AUTOMAKE([foreign]) |
| 100 | AC_PROG_CC | 101 | AC_PROG_CC |
| 101 | AC_CONFIG_SRCDIR([lib2.c]) | 102 | AC_CONFIG_SRCDIR([lib2.c]) |
| 102 | LT_INIT | 103 | LT_INIT |
| @@ -105,7 +106,7 @@ index 24265e4..d388e3e 100755 | |||
| 105 | AC_SUBST([sysroot]) | 106 | AC_SUBST([sysroot]) |
| 106 | AC_OUTPUT(Makefile) | 107 | AC_OUTPUT(Makefile) |
| 107 | _ATEOF | 108 | _ATEOF |
| 108 | @@ -49404,7 +49404,7 @@ AM_INIT_AUTOMAKE([foreign]) | 109 | @@ -49463,7 +49463,7 @@ AM_INIT_AUTOMAKE([foreign]) |
| 109 | AC_PROG_CC | 110 | AC_PROG_CC |
| 110 | AC_CONFIG_SRCDIR([prog.c]) | 111 | AC_CONFIG_SRCDIR([prog.c]) |
| 111 | LT_INIT | 112 | LT_INIT |
| @@ -114,7 +115,7 @@ index 24265e4..d388e3e 100755 | |||
| 114 | AC_SUBST([sysroot]) | 115 | AC_SUBST([sysroot]) |
| 115 | AC_OUTPUT(Makefile) | 116 | AC_OUTPUT(Makefile) |
| 116 | _ATEOF | 117 | _ATEOF |
| 117 | @@ -49761,7 +49761,7 @@ $at_traceon; } | 118 | @@ -49821,7 +49821,7 @@ $at_traceon; } |
| 118 | 119 | ||
| 119 | 120 | ||
| 120 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" | 121 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" |
| @@ -123,7 +124,7 @@ index 24265e4..d388e3e 100755 | |||
| 123 | 124 | ||
| 124 | #??? | 125 | #??? |
| 125 | if test PATH = "$shlibpath_var"; then | 126 | if test PATH = "$shlibpath_var"; then |
| 126 | @@ -49975,7 +49975,7 @@ AM_INIT_AUTOMAKE([foreign]) | 127 | @@ -50036,7 +50036,7 @@ AM_INIT_AUTOMAKE([foreign]) |
| 127 | AC_PROG_CC | 128 | AC_PROG_CC |
| 128 | AC_CONFIG_SRCDIR([lib2.c]) | 129 | AC_CONFIG_SRCDIR([lib2.c]) |
| 129 | LT_INIT | 130 | LT_INIT |
| @@ -132,7 +133,7 @@ index 24265e4..d388e3e 100755 | |||
| 132 | AC_SUBST([sysroot]) | 133 | AC_SUBST([sysroot]) |
| 133 | AC_OUTPUT(Makefile) | 134 | AC_OUTPUT(Makefile) |
| 134 | _ATEOF | 135 | _ATEOF |
| 135 | @@ -50168,7 +50168,7 @@ AM_INIT_AUTOMAKE([foreign]) | 136 | @@ -50230,7 +50230,7 @@ AM_INIT_AUTOMAKE([foreign]) |
| 136 | AC_PROG_CC | 137 | AC_PROG_CC |
| 137 | AC_CONFIG_SRCDIR([prog.c]) | 138 | AC_CONFIG_SRCDIR([prog.c]) |
| 138 | LT_INIT | 139 | LT_INIT |
| @@ -141,7 +142,7 @@ index 24265e4..d388e3e 100755 | |||
| 141 | AC_SUBST([sysroot]) | 142 | AC_SUBST([sysroot]) |
| 142 | AC_OUTPUT(Makefile) | 143 | AC_OUTPUT(Makefile) |
| 143 | _ATEOF | 144 | _ATEOF |
| 144 | @@ -50525,7 +50525,7 @@ $at_traceon; } | 145 | @@ -50588,7 +50588,7 @@ $at_traceon; } |
| 145 | 146 | ||
| 146 | 147 | ||
| 147 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" | 148 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" |
| @@ -150,7 +151,7 @@ index 24265e4..d388e3e 100755 | |||
| 150 | 151 | ||
| 151 | #??? | 152 | #??? |
| 152 | if test PATH = "$shlibpath_var"; then | 153 | if test PATH = "$shlibpath_var"; then |
| 153 | @@ -50739,7 +50739,7 @@ AM_INIT_AUTOMAKE([foreign]) | 154 | @@ -50803,7 +50803,7 @@ AM_INIT_AUTOMAKE([foreign]) |
| 154 | AC_PROG_CC | 155 | AC_PROG_CC |
| 155 | AC_CONFIG_SRCDIR([lib2.c]) | 156 | AC_CONFIG_SRCDIR([lib2.c]) |
| 156 | LT_INIT | 157 | LT_INIT |
| @@ -159,7 +160,7 @@ index 24265e4..d388e3e 100755 | |||
| 159 | AC_SUBST([sysroot]) | 160 | AC_SUBST([sysroot]) |
| 160 | AC_OUTPUT(Makefile) | 161 | AC_OUTPUT(Makefile) |
| 161 | _ATEOF | 162 | _ATEOF |
| 162 | @@ -50932,7 +50932,7 @@ AM_INIT_AUTOMAKE([foreign]) | 163 | @@ -50997,7 +50997,7 @@ AM_INIT_AUTOMAKE([foreign]) |
| 163 | AC_PROG_CC | 164 | AC_PROG_CC |
| 164 | AC_CONFIG_SRCDIR([prog.c]) | 165 | AC_CONFIG_SRCDIR([prog.c]) |
| 165 | LT_INIT | 166 | LT_INIT |
diff --git a/meta/recipes-devtools/libtool/libtool/0003-libtool.m4-Cleanup-sysroot-trailing.patch b/meta/recipes-devtools/libtool/libtool/0003-libtool.m4-Cleanup-sysroot-trailing.patch deleted file mode 100644 index 6d922382ef..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0003-libtool.m4-Cleanup-sysroot-trailing.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | libtool.m4: Cleanup sysroot trailing "/" | ||
| 2 | |||
| 3 | If $CC has --sysroot=/, it is a valid configuration however libtool will | ||
| 4 | then set lt_sysroot to "/". | ||
| 5 | |||
| 6 | This means references like $lt_sysroot$libdir become //usr/lib instead | ||
| 7 | of the more normally expected /usr/lib. This may or may not break something | ||
| 8 | but certainly is confusing to the user and gives confusing output. Making | ||
| 9 | "/" simply unset lt_sysroot is much cleaner. | ||
| 10 | |||
| 11 | Whilst here, trim any trailing '/' from sysroot paths to drop the duplication | ||
| 12 | and result in cleaner/consistent output. | ||
| 13 | |||
| 14 | * m4/libtool.m4: Cleanup sysroot trailing '/' handling | ||
| 15 | |||
| 16 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=365805327c7b9bbdb0e622b954b6b0d8eaeb3f99] | ||
| 17 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 18 | |||
| 19 | --- | ||
| 20 | m4/libtool.m4 | 4 +++- | ||
| 21 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 22 | |||
| 23 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | ||
| 24 | index fa1ae91..2f31d24 100644 | ||
| 25 | --- a/m4/libtool.m4 | ||
| 26 | +++ b/m4/libtool.m4 | ||
| 27 | @@ -1256,7 +1256,9 @@ lt_sysroot= | ||
| 28 | case $with_libtool_sysroot in #( | ||
| 29 | yes) | ||
| 30 | if test yes = "$GCC"; then | ||
| 31 | - lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
| 32 | + # Trim trailing / since we'll always append absolute paths and we want | ||
| 33 | + # to avoid //, if only for less confusing output for the user. | ||
| 34 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` | ||
| 35 | fi | ||
| 36 | ;; #( | ||
| 37 | /*) | ||
diff --git a/meta/recipes-devtools/libtool/libtool/0003-ltmain.in-Add-missing-sysroot-to-library-path.patch b/meta/recipes-devtools/libtool/libtool/0003-ltmain.in-Add-missing-sysroot-to-library-path.patch index 35f48ef906..2436f68a49 100644 --- a/meta/recipes-devtools/libtool/libtool/0003-ltmain.in-Add-missing-sysroot-to-library-path.patch +++ b/meta/recipes-devtools/libtool/libtool/0003-ltmain.in-Add-missing-sysroot-to-library-path.patch | |||
| @@ -8,13 +8,14 @@ i.e. when lt_sysroot is not set, it will still behave the same and add | |||
| 8 | 8 | ||
| 9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 10 | 10 | ||
| 11 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00017.html] | 11 | Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00017.html] |
| 12 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=3221f9f0fb98d5740ab5d0e8db6a731302520644] | ||
| 12 | 13 | ||
| 13 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 14 | Index: libtool-2.5.0/build-aux/ltmain.in |
| 14 | index f884824..25a91de 100644 | 15 | =================================================================== |
| 15 | --- a/build-aux/ltmain.in | 16 | --- libtool-2.5.0.orig/build-aux/ltmain.in |
| 16 | +++ b/build-aux/ltmain.in | 17 | +++ libtool-2.5.0/build-aux/ltmain.in |
| 17 | @@ -6503,7 +6503,7 @@ func_mode_link () | 18 | @@ -6514,7 +6514,7 @@ func_mode_link () |
| 18 | fi | 19 | fi |
| 19 | else | 20 | else |
| 20 | # We cannot seem to hardcode it, guess we'll fake it. | 21 | # We cannot seem to hardcode it, guess we'll fake it. |
| @@ -23,6 +24,3 @@ index f884824..25a91de 100644 | |||
| 23 | # Try looking first in the location we're being installed to. | 24 | # Try looking first in the location we're being installed to. |
| 24 | if test -n "$inst_prefix_dir"; then | 25 | if test -n "$inst_prefix_dir"; then |
| 25 | case $libdir in | 26 | case $libdir in |
| 26 | -- | ||
| 27 | 2.25.1 | ||
| 28 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch b/meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch index 9203302182..a6b3313d71 100644 --- a/meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch +++ b/meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch | |||
| @@ -9,11 +9,11 @@ Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | |||
| 9 | 9 | ||
| 10 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00009.html] | 10 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00009.html] |
| 11 | 11 | ||
| 12 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 12 | Index: libtool-2.5.0/build-aux/ltmain.in |
| 13 | index 25a91de..40cb94a 100644 | 13 | =================================================================== |
| 14 | --- a/build-aux/ltmain.in | 14 | --- libtool-2.5.0.orig/build-aux/ltmain.in |
| 15 | +++ b/build-aux/ltmain.in | 15 | +++ libtool-2.5.0/build-aux/ltmain.in |
| 16 | @@ -7682,9 +7682,11 @@ EOF | 16 | @@ -7584,9 +7584,11 @@ func_mode_link () |
| 17 | test relink = "$opt_mode" || rpath=$compile_rpath$rpath | 17 | test relink = "$opt_mode" || rpath=$compile_rpath$rpath |
| 18 | for libdir in $rpath; do | 18 | for libdir in $rpath; do |
| 19 | if test -n "$hardcode_libdir_flag_spec"; then | 19 | if test -n "$hardcode_libdir_flag_spec"; then |
| @@ -27,7 +27,7 @@ index 25a91de..40cb94a 100644 | |||
| 27 | if test -z "$hardcode_libdirs"; then | 27 | if test -z "$hardcode_libdirs"; then |
| 28 | hardcode_libdirs=$libdir | 28 | hardcode_libdirs=$libdir |
| 29 | else | 29 | else |
| 30 | @@ -8414,6 +8416,10 @@ EOF | 30 | @@ -8316,6 +8318,10 @@ func_mode_link () |
| 31 | hardcode_libdirs= | 31 | hardcode_libdirs= |
| 32 | for libdir in $compile_rpath $finalize_rpath; do | 32 | for libdir in $compile_rpath $finalize_rpath; do |
| 33 | if test -n "$hardcode_libdir_flag_spec"; then | 33 | if test -n "$hardcode_libdir_flag_spec"; then |
| @@ -38,7 +38,7 @@ index 25a91de..40cb94a 100644 | |||
| 38 | if test -n "$hardcode_libdir_separator"; then | 38 | if test -n "$hardcode_libdir_separator"; then |
| 39 | if test -z "$hardcode_libdirs"; then | 39 | if test -z "$hardcode_libdirs"; then |
| 40 | hardcode_libdirs=$libdir | 40 | hardcode_libdirs=$libdir |
| 41 | @@ -8465,6 +8471,10 @@ EOF | 41 | @@ -8367,6 +8373,10 @@ func_mode_link () |
| 42 | hardcode_libdirs= | 42 | hardcode_libdirs= |
| 43 | for libdir in $finalize_rpath; do | 43 | for libdir in $finalize_rpath; do |
| 44 | if test -n "$hardcode_libdir_flag_spec"; then | 44 | if test -n "$hardcode_libdir_flag_spec"; then |
| @@ -49,6 +49,3 @@ index 25a91de..40cb94a 100644 | |||
| 49 | if test -n "$hardcode_libdir_separator"; then | 49 | if test -n "$hardcode_libdir_separator"; then |
| 50 | if test -z "$hardcode_libdirs"; then | 50 | if test -z "$hardcode_libdirs"; then |
| 51 | hardcode_libdirs=$libdir | 51 | hardcode_libdirs=$libdir |
| 52 | -- | ||
| 53 | 2.25.1 | ||
| 54 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch b/meta/recipes-devtools/libtool/libtool/0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch index 8b6352b01b..54e602f118 100644 --- a/meta/recipes-devtools/libtool/libtool/0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch +++ b/meta/recipes-devtools/libtool/libtool/0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch | |||
| @@ -12,11 +12,11 @@ Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | |||
| 12 | 12 | ||
| 13 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00013.html] | 13 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00013.html] |
| 14 | 14 | ||
| 15 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 15 | Index: libtool-2.5.0/build-aux/ltmain.in |
| 16 | index 40cb94a..2fa055e 100644 | 16 | =================================================================== |
| 17 | --- a/build-aux/ltmain.in | 17 | --- libtool-2.5.0.orig/build-aux/ltmain.in |
| 18 | +++ b/build-aux/ltmain.in | 18 | +++ libtool-2.5.0/build-aux/ltmain.in |
| 19 | @@ -7700,8 +7700,16 @@ EOF | 19 | @@ -7602,8 +7602,16 @@ func_mode_link () |
| 20 | esac | 20 | esac |
| 21 | fi | 21 | fi |
| 22 | else | 22 | else |
| @@ -35,7 +35,7 @@ index 40cb94a..2fa055e 100644 | |||
| 35 | fi | 35 | fi |
| 36 | elif test -n "$runpath_var"; then | 36 | elif test -n "$runpath_var"; then |
| 37 | case "$perm_rpath " in | 37 | case "$perm_rpath " in |
| 38 | @@ -8434,8 +8442,16 @@ EOF | 38 | @@ -8336,8 +8344,16 @@ func_mode_link () |
| 39 | esac | 39 | esac |
| 40 | fi | 40 | fi |
| 41 | else | 41 | else |
| @@ -54,7 +54,7 @@ index 40cb94a..2fa055e 100644 | |||
| 54 | fi | 54 | fi |
| 55 | elif test -n "$runpath_var"; then | 55 | elif test -n "$runpath_var"; then |
| 56 | case "$perm_rpath " in | 56 | case "$perm_rpath " in |
| 57 | @@ -8489,8 +8505,14 @@ EOF | 57 | @@ -8391,8 +8407,14 @@ func_mode_link () |
| 58 | esac | 58 | esac |
| 59 | fi | 59 | fi |
| 60 | else | 60 | else |
| @@ -71,6 +71,3 @@ index 40cb94a..2fa055e 100644 | |||
| 71 | fi | 71 | fi |
| 72 | elif test -n "$runpath_var"; then | 72 | elif test -n "$runpath_var"; then |
| 73 | case "$finalize_perm_rpath " in | 73 | case "$finalize_perm_rpath " in |
| 74 | -- | ||
| 75 | 2.25.1 | ||
| 76 | |||
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 c104e904cc..435c52c730 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 | |||
| @@ -10,11 +10,11 @@ Upstream-Status: Inappropriate [Upstream are unlikely to accept this change of d | |||
| 10 | m4/libtool.m4 | 6 +++--- | 10 | m4/libtool.m4 | 6 +++--- |
| 11 | 1 file changed, 3 insertions(+), 3 deletions(-) | 11 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 12 | 12 | ||
| 13 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | 13 | Index: libtool-2.5.0/m4/libtool.m4 |
| 14 | index 2f31d24..bd90775 100644 | 14 | =================================================================== |
| 15 | --- a/m4/libtool.m4 | 15 | --- libtool-2.5.0.orig/m4/libtool.m4 |
| 16 | +++ b/m4/libtool.m4 | 16 | +++ libtool-2.5.0/m4/libtool.m4 |
| 17 | @@ -1254,18 +1254,18 @@ dnl lt_sysroot will always be passed unquoted. We quote it here | 17 | @@ -1253,18 +1253,18 @@ dnl lt_sysroot will always be passed unq |
| 18 | dnl in case the user passed a directory name. | 18 | dnl in case the user passed a directory name. |
| 19 | lt_sysroot= | 19 | lt_sysroot= |
| 20 | case $with_libtool_sysroot in #( | 20 | case $with_libtool_sysroot in #( |
diff --git a/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-support-for-NIOS2-processor.patch b/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-support-for-NIOS2-processor.patch deleted file mode 100644 index 676ce7fd1b..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-support-for-NIOS2-processor.patch +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | libtool: Fix support for NIOS2 processor | ||
| 2 | |||
| 3 | The name of the system contains the string "nios2". This string | ||
| 4 | is caught by the some of the greedy checks for OS/2 in libtool, | ||
| 5 | in particular the *os2* branches of switch statements match for | ||
| 6 | the nios2 string, which results in incorrect behavior of libtool. | ||
| 7 | |||
| 8 | Switch to use $host_os instead of $host and tweak the patterns to | ||
| 9 | match to avoid this problem for nios2. | ||
| 10 | |||
| 11 | * build-aux/ltmain.in: Fix NIOS2 support | ||
| 12 | --- | ||
| 13 | build-aux/ltmain.in | 12 ++++++------ | ||
| 14 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
| 15 | |||
| 16 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 17 | |||
| 18 | Submitted: https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00021.html | ||
| 19 | Reworked and submitted: https://lists.gnu.org/archive/html/libtool-patches/2024-01/msg00068.html | ||
| 20 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=49e6cb0d4dfdca2a59b909dc4532fe22dbc57ad5] | ||
| 21 | |||
| 22 | Index: libtool-2.4.7/build-aux/ltmain.in | ||
| 23 | =================================================================== | ||
| 24 | --- libtool-2.4.7.orig/build-aux/ltmain.in | ||
| 25 | +++ libtool-2.4.7/build-aux/ltmain.in | ||
| 26 | @@ -518,10 +518,10 @@ libtool_validate_options () | ||
| 27 | # preserve --debug | ||
| 28 | test : = "$debug_cmd" || func_append preserve_args " --debug" | ||
| 29 | |||
| 30 | - case $host in | ||
| 31 | + case $host_os in | ||
| 32 | # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 | ||
| 33 | # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 | ||
| 34 | - *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) | ||
| 35 | + cygwin* | mingw* | pw32* | cegcc* | solaris2* | os2*) | ||
| 36 | # don't eliminate duplications in $postdeps and $predeps | ||
| 37 | opt_duplicate_compiler_generated_deps=: | ||
| 38 | ;; | ||
| 39 | @@ -6273,8 +6273,8 @@ func_mode_link () | ||
| 40 | fi | ||
| 41 | if test -n "$library_names" && | ||
| 42 | { test no = "$use_static_libs" || test -z "$old_library"; }; then | ||
| 43 | - case $host in | ||
| 44 | - *cygwin* | *mingw* | *cegcc* | *os2*) | ||
| 45 | + case $host_os in | ||
| 46 | + cygwin* | mingw* | cegcc* | os2*) | ||
| 47 | # No point in relinking DLLs because paths are not encoded | ||
| 48 | func_append notinst_deplibs " $lib" | ||
| 49 | need_relink=no | ||
| 50 | @@ -6343,8 +6343,8 @@ func_mode_link () | ||
| 51 | soname=$dlname | ||
| 52 | elif test -n "$soname_spec"; then | ||
| 53 | # bleh windows | ||
| 54 | - case $host in | ||
| 55 | - *cygwin* | mingw* | *cegcc* | *os2*) | ||
| 56 | + case $host_os in | ||
| 57 | + cygwin* | mingw* | cegcc* | os2*) | ||
| 58 | func_arith $current - $age | ||
| 59 | major=$func_arith_result | ||
| 60 | versuffix=-$major | ||
diff --git a/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch b/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch index c151c3b481..c103ebb7bf 100644 --- a/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch +++ b/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch | |||
| @@ -15,19 +15,16 @@ https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866 | |||
| 15 | 15 | ||
| 16 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00016.html] | 16 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00016.html] |
| 17 | 17 | ||
| 18 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | 18 | Index: libtool-2.5.0/m4/libtool.m4 |
| 19 | index bd90775..3794130 100644 | 19 | =================================================================== |
| 20 | --- a/m4/libtool.m4 | 20 | --- libtool-2.5.0.orig/m4/libtool.m4 |
| 21 | +++ b/m4/libtool.m4 | 21 | +++ libtool-2.5.0/m4/libtool.m4 |
| 22 | @@ -7556,7 +7556,7 @@ if AC_TRY_EVAL(ac_compile); then | 22 | @@ -7553,7 +7553,7 @@ if AC_TRY_EVAL(ac_compile); then |
| 23 | for p in `eval "$output_verbose_link_cmd"`; do | 23 | for p in `eval "$output_verbose_link_cmd"`; do |
| 24 | case $prev$p in | 24 | case $prev$p in |
| 25 | 25 | ||
| 26 | - -L* | -R* | -l*) | 26 | - -L* | -R* | -l*) |
| 27 | + -L* | -R* | -l* | */libclang_rt.*.a) | 27 | + -L* | -R* | -l* | */libclang_rt.*.a) |
| 28 | # Some compilers place space between "-{L,R}" and the path. | 28 | # Some compilers place space between "-{L,R,l}" and the path. |
| 29 | # Remove the space. | 29 | # Remove the space. |
| 30 | if test x-L = "$p" || | 30 | if test x-L = x"$p" || |
| 31 | -- | ||
| 32 | 2.25.1 | ||
| 33 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0009-Makefile.am-make-sure-autoheader-run-before-autoconf.patch b/meta/recipes-devtools/libtool/libtool/0009-Makefile.am-make-sure-autoheader-run-before-autoconf.patch deleted file mode 100644 index f51deecbef..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0009-Makefile.am-make-sure-autoheader-run-before-autoconf.patch +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | From: Mingli Yu <mingli.yu@windriver.com> | ||
| 2 | Subject: [PATCH 09/12] Makefile.am: make sure autoheader run before autoconf | ||
| 3 | |||
| 4 | autoheader will update ../libtool-2.4.6/libltdl/config-h.in which | ||
| 5 | autoconf needs, so there comes a race sometimes as below: | ||
| 6 | | configure.ac:45: error: required file 'config-h.in' not found | ||
| 7 | | touch '../libtool-2.4.6/libltdl/config-h.in' | ||
| 8 | |||
| 9 | So make sure autoheader run before autoconf to avoid this race. | ||
| 10 | |||
| 11 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 12 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=e7dc729dd27b367905cd0ce52b5466d91537857a] | ||
| 15 | |||
| 16 | diff --git a/Makefile.am b/Makefile.am | ||
| 17 | index c29860e..9c34bfd 100644 | ||
| 18 | --- a/Makefile.am | ||
| 19 | +++ b/Makefile.am | ||
| 20 | @@ -370,7 +370,7 @@ lt_configure_deps = $(lt_aclocal_m4) $(lt_aclocal_m4_deps) | ||
| 21 | $(lt_aclocal_m4): $(lt_aclocal_m4_deps) | ||
| 22 | $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(ACLOCAL) -I ../m4 | ||
| 23 | |||
| 24 | -$(lt_configure): $(lt_configure_deps) | ||
| 25 | +$(lt_configure): $(lt_configure_deps) $(lt_config_h_in) | ||
| 26 | $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOCONF) | ||
| 27 | |||
| 28 | $(lt_config_h_in): $(lt_configure_deps) | ||
| 29 | -- | ||
| 30 | 2.25.1 | ||
| 31 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0010-Makefile.am-make-sure-autoheader-run-before-automake.patch b/meta/recipes-devtools/libtool/libtool/0010-Makefile.am-make-sure-autoheader-run-before-automake.patch deleted file mode 100644 index e451de59e3..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0010-Makefile.am-make-sure-autoheader-run-before-automake.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From: Mingli Yu <mingli.yu@windriver.com> | ||
| 2 | Subject: [PATCH 10/12] Makefile.am: make sure autoheader run before automake | ||
| 3 | |||
| 4 | When use automake to generate Makefile.in from Makefile.am, there | ||
| 5 | comes below race: | ||
| 6 | | configure.ac:45: error: required file 'config-h.in' not found | ||
| 7 | |||
| 8 | It is because the file config-h.in in updating process by autoheader, | ||
| 9 | so make automake run after autoheader to avoid the above race. | ||
| 10 | |||
| 11 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 12 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=e01c0bfe5e041418d84460901a1a5b11b89d596f] | ||
| 15 | |||
| 16 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 17 | |||
| 18 | diff --git a/Makefile.am b/Makefile.am | ||
| 19 | index 9c34bfd..231ef3f 100644 | ||
| 20 | --- a/Makefile.am | ||
| 21 | +++ b/Makefile.am | ||
| 22 | @@ -333,7 +333,7 @@ EXTRA_DIST += $(lt_aclocal_m4) \ | ||
| 23 | $(lt_obsolete_m4) \ | ||
| 24 | $(stamp_mk) | ||
| 25 | |||
| 26 | -$(lt_Makefile_in): $(lt_Makefile_am) $(lt_aclocal_m4) | ||
| 27 | +$(lt_Makefile_in): $(lt_Makefile_am) $(lt_aclocal_m4) $(lt_config_h_in) | ||
| 28 | $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOMAKE) Makefile | ||
| 29 | |||
| 30 | # Don't let unused scripts leak into the libltdl Makefile | ||
| 31 | -- | ||
| 32 | 2.25.1 | ||
| 33 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch b/meta/recipes-devtools/libtool/libtool/0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch deleted file mode 100644 index 4c6b6f05b4..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | ltmain.in: Handle prefix-map compiler options correctly | ||
| 2 | |||
| 3 | If lto is enabled, we need the prefix-map variables to be passed to the linker | ||
| 4 | to correctly link the objects using correctly mapped paths. | ||
| 5 | |||
| 6 | Add these to the list of options libtool passes through. | ||
| 7 | |||
| 8 | * build-aux/ltmain.in: Handle prefix-map compiler options | ||
| 9 | |||
| 10 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 11 | |||
| 12 | https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00019.html | ||
| 13 | https://lists.gnu.org/archive/html/libtool-patches/2024-01/msg00066.html | ||
| 14 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=cdf4bf702f11d17e06569936e8a433a77f791228] | ||
| 15 | |||
| 16 | --- | ||
| 17 | build-aux/ltmain.in | 3 ++- | ||
| 18 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | ||
| 21 | index 0a50f5b..037f009 100644 | ||
| 22 | --- a/build-aux/ltmain.in | ||
| 23 | +++ b/build-aux/ltmain.in | ||
| 24 | @@ -5413,11 +5413,12 @@ func_mode_link () | ||
| 25 | # -stdlib=* select c++ std lib with clang | ||
| 26 | # -fsanitize=* Clang/GCC memory and address sanitizer | ||
| 27 | # -fuse-ld=* Linker select flags for GCC | ||
| 28 | + # -f{file|debug|macro|profile}-prefix-map* needed for lto linking | ||
| 29 | # -Wa,* Pass flags directly to the assembler | ||
| 30 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ | ||
| 31 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | ||
| 32 | -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ | ||
| 33 | - -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*) | ||
| 34 | + -specs=*|-fsanitize=*|-fuse-ld=*|-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*|-Wa,*) | ||
| 35 | func_quote_arg pretty "$arg" | ||
| 36 | arg=$func_quote_arg_result | ||
| 37 | func_append compile_command " $arg" | ||
diff --git a/meta/recipes-devtools/libtool/libtool/0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch b/meta/recipes-devtools/libtool/libtool/0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch deleted file mode 100644 index 8469b8727e..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 2 | Subject: [PATCH 12/12] libtool.m4: For reproducibility stop encoding hostname in libtool script | ||
| 3 | |||
| 4 | For reproducibilty, stop encoding the hostname into the libtool script, this isn't | ||
| 5 | really adding much to debugging and most distros are carrying such a patch now as | ||
| 6 | reproducibility is important. | ||
| 7 | |||
| 8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 9 | |||
| 10 | https://sources.debian.org/data/main/libt/libtool/2.4.6-10/debian/patches/ | ||
| 11 | no_hostname.patch | ||
| 12 | |||
| 13 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=bd826173c4c9c3fa8d77d92785754897cb4bfd89] | ||
| 14 | |||
| 15 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | ||
| 16 | index 3794130..84a550c 100644 | ||
| 17 | --- a/m4/libtool.m4 | ||
| 18 | +++ b/m4/libtool.m4 | ||
| 19 | @@ -730,7 +730,6 @@ _LT_CONFIG_SAVE_COMMANDS([ | ||
| 20 | cat <<_LT_EOF >> "$cfgfile" | ||
| 21 | #! $SHELL | ||
| 22 | # Generated automatically by $as_me ($PACKAGE) $VERSION | ||
| 23 | -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
| 24 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
| 25 | |||
| 26 | # Provide generalized library-building support services. | ||
| 27 | -- | ||
| 28 | 2.25.1 | ||
| 29 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/filefix.patch b/meta/recipes-devtools/libtool/libtool/filefix.patch new file mode 100644 index 0000000000..4d85132954 --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool/filefix.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | [PATCH] libtool.m4: Fix AC_CHECK_PROG usage | ||
| 2 | |||
| 3 | In commit: | ||
| 4 | |||
| 5 | https://git.savannah.gnu.org/cgit/libtool.git/commit/m4/libtool.m4?id=64bef5ba65f6820cd5f88e5249324b4f5955ee25 | ||
| 6 | |||
| 7 | AC_CHECK_TOOL was changed to AC_CHECK_PROG however the arguments are | ||
| 8 | different and this result is a value of ":". Change this to match the | ||
| 9 | original intent. | ||
| 10 | |||
| 11 | The lack of FILECMD was causing failures for mips64 builds as -m elf was | ||
| 12 | being passed to LD which isn't supported on our targets. | ||
| 13 | |||
| 14 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2024-06/msg00000.html] | ||
| 15 | |||
| 16 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 17 | |||
| 18 | Index: libtool-2.5.0/m4/libtool.m4 | ||
| 19 | =================================================================== | ||
| 20 | --- libtool-2.5.0.orig/m4/libtool.m4 | ||
| 21 | +++ libtool-2.5.0/m4/libtool.m4 | ||
| 22 | @@ -8216,7 +8216,7 @@ AC_SUBST([DLLTOOL]) | ||
| 23 | # ---------------- | ||
| 24 | # Check for a file(cmd) program that can be used to detect file type and magic | ||
| 25 | m4_defun([_LT_DECL_FILECMD], | ||
| 26 | -[AC_CHECK_PROG([FILECMD], [file], [:]) | ||
| 27 | +[AC_CHECK_PROG([FILECMD], [file], [file], [:]) | ||
| 28 | _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) | ||
| 29 | ])# _LD_DECL_FILECMD | ||
| 30 | |||
diff --git a/meta/recipes-devtools/libtool/libtool_2.4.7.bb b/meta/recipes-devtools/libtool/libtool_2.5.0.bb index 44a4950574..44a4950574 100644 --- a/meta/recipes-devtools/libtool/libtool_2.4.7.bb +++ b/meta/recipes-devtools/libtool/libtool_2.5.0.bb | |||
diff --git a/meta/recipes-devtools/libtool/nativesdk-libtool_2.4.7.bb b/meta/recipes-devtools/libtool/nativesdk-libtool_2.5.0.bb index 86c55ded7b..86c55ded7b 100644 --- a/meta/recipes-devtools/libtool/nativesdk-libtool_2.4.7.bb +++ b/meta/recipes-devtools/libtool/nativesdk-libtool_2.5.0.bb | |||
