summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libtool/libtool
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-17 08:36:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-19 00:16:41 +0000
commit3742a45c0ecd1559f9724c36faf637b4c41b0d54 (patch)
tree3a515b97a03b7b3e337606af9e634fc794b32f5d /meta/recipes-devtools/libtool/libtool
parentc8783797affaa87040794f78e9ec98405b3bfe29 (diff)
downloadpoky-3742a45c0ecd1559f9724c36faf637b4c41b0d54.tar.gz
libtool: Update nios2 patch to match upstream merged version
Update the patch to match the version merged upstream. (From OE-Core rev: 918f665f440975f54e77b13bee8111de06aa7dca) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool')
-rw-r--r--meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-support-for-NIOS2-processor.patch81
1 files changed, 38 insertions, 43 deletions
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
index 277afe0af6..676ce7fd1b 100644
--- 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
@@ -1,65 +1,60 @@
1From: Marek Vasut <marex@denx.de> 1libtool: Fix support for NIOS2 processor
2Subject: [PATCH 07/12] libtool: Fix support for NIOS2 processor
3 2
4The name of the system contains the string "nios2". This string 3The name of the system contains the string "nios2". This string
5is caught by the some of the greedy checks for OS/2 in libtool, 4is caught by the some of the greedy checks for OS/2 in libtool,
6in particular the *os2* branches of switch statements match for 5in particular the *os2* branches of switch statements match for
7the nios2 string, which results in incorrect behavior of libtool. 6the nios2 string, which results in incorrect behavior of libtool.
8 7
9This patch adds an explicit check for *nios2* before the *os2* 8Switch to use $host_os instead of $host and tweak the patterns to
10checks to prevent the OS/2 check incorrectly trapping the nios2 9match to avoid this problem for nios2.
11as well. 10
11* build-aux/ltmain.in: Fix NIOS2 support
12---
13 build-aux/ltmain.in | 12 ++++++------
14 1 file changed, 6 insertions(+), 6 deletions(-)
12 15
13Signed-off-by: Marek Vasut <marex@denx.de>
14Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 16Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
15 17
16Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00021.html] 18Submitted: https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00021.html
19Reworked and submitted: https://lists.gnu.org/archive/html/libtool-patches/2024-01/msg00068.html
20Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=49e6cb0d4dfdca2a59b909dc4532fe22dbc57ad5]
17 21
18diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in 22Index: libtool-2.4.7/build-aux/ltmain.in
19index 6fb58ed2..606f17be 100644 23===================================================================
20--- a/build-aux/ltmain.in 24--- libtool-2.4.7.orig/build-aux/ltmain.in
21+++ b/build-aux/ltmain.in 25+++ libtool-2.4.7/build-aux/ltmain.in
22@@ -519,6 +519,12 @@ libtool_validate_options () 26@@ -518,10 +518,10 @@ libtool_validate_options ()
27 # preserve --debug
23 test : = "$debug_cmd" || func_append preserve_args " --debug" 28 test : = "$debug_cmd" || func_append preserve_args " --debug"
24 29
25 case $host in 30- case $host in
26+ # For NIOS2, we want to make sure that it's not caught by the 31+ case $host_os in
27+ # more general OS/2 check below. Otherwise, NIOS2 is the same
28+ # as the default option.
29+ *nios2*)
30+ opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
31+ ;;
32 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 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 33 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
34 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) 34- *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
35@@ -6246,6 +6252,15 @@ func_mode_link () 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
36 if test -n "$library_names" && 41 if test -n "$library_names" &&
37 { test no = "$use_static_libs" || test -z "$old_library"; }; then 42 { test no = "$use_static_libs" || test -z "$old_library"; }; then
38 case $host in 43- case $host in
39+ *nios2*) 44- *cygwin* | *mingw* | *cegcc* | *os2*)
40+ # For NIOS2, we want to make sure that it's not caught by the 45+ case $host_os in
41+ # more general OS/2 check below. Otherwise, NIOS2 is the same 46+ cygwin* | mingw* | cegcc* | os2*)
42+ # as the default option.
43+ if test no = "$installed"; then
44+ func_append notinst_deplibs " $lib"
45+ need_relink=yes
46+ fi
47+ ;;
48 *cygwin* | *mingw* | *cegcc* | *os2*)
49 # No point in relinking DLLs because paths are not encoded 47 # No point in relinking DLLs because paths are not encoded
50 func_append notinst_deplibs " $lib" 48 func_append notinst_deplibs " $lib"
51@@ -6316,6 +6331,11 @@ func_mode_link () 49 need_relink=no
50@@ -6343,8 +6343,8 @@ func_mode_link ()
51 soname=$dlname
52 elif test -n "$soname_spec"; then 52 elif test -n "$soname_spec"; then
53 # bleh windows 53 # bleh windows
54 case $host in 54- case $host in
55+ *nios2*) 55- *cygwin* | mingw* | *cegcc* | *os2*)
56+ # For NIOS2, we want to make sure that it's not caught by the 56+ case $host_os in
57+ # more general OS/2 check below. Otherwise, NIOS2 is the same 57+ cygwin* | mingw* | cegcc* | os2*)
58+ # as the default option.
59+ ;;
60 *cygwin* | mingw* | *cegcc* | *os2*)
61 func_arith $current - $age 58 func_arith $current - $age
62 major=$func_arith_result 59 major=$func_arith_result
63-- 60 versuffix=-$major
642.25.1
65