summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch')
-rw-r--r--meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch18
1 files changed, 11 insertions, 7 deletions
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 21b3dfe306..4fcf456b0b 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
@@ -10,23 +10,24 @@ Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00009.html] 10Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00009.html]
11 11
12diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in 12diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
13index 2c994612..96238350 100644
13--- a/build-aux/ltmain.in 14--- a/build-aux/ltmain.in
14+++ b/build-aux/ltmain.in 15+++ b/build-aux/ltmain.in
15@@ -7569,9 +7569,11 @@ EOF 16@@ -7654,9 +7654,11 @@ EOF
16 test relink = "$opt_mode" || rpath=$compile_rpath$rpath 17 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
17 for libdir in $rpath; do 18 for libdir in $rpath; do
18 if test -n "$hardcode_libdir_flag_spec"; then 19 if test -n "$hardcode_libdir_flag_spec"; then
19+ func_replace_sysroot "$libdir" 20+ func_replace_sysroot "$libdir"
20+ libdir=$func_replace_sysroot_result 21+ libdir=$func_replace_sysroot_result
21+ func_stripname '=' '' "$libdir" 22+ func_stripname '=' '' "$libdir"
22+ libdir=$func_stripname_result 23+ libdir=$func_stripname_result
23 if test -n "$hardcode_libdir_separator"; then 24 if test -n "$hardcode_libdir_separator"; then
24- func_replace_sysroot "$libdir" 25- func_replace_sysroot "$libdir"
25- libdir=$func_replace_sysroot_result 26- libdir=$func_replace_sysroot_result
26 if test -z "$hardcode_libdirs"; then 27 if test -z "$hardcode_libdirs"; then
27 hardcode_libdirs=$libdir 28 hardcode_libdirs=$libdir
28 else 29 else
29@@ -8301,6 +8303,10 @@ EOF 30@@ -8386,6 +8388,10 @@ EOF
30 hardcode_libdirs= 31 hardcode_libdirs=
31 for libdir in $compile_rpath $finalize_rpath; do 32 for libdir in $compile_rpath $finalize_rpath; do
32 if test -n "$hardcode_libdir_flag_spec"; then 33 if test -n "$hardcode_libdir_flag_spec"; then
@@ -37,7 +38,7 @@ diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
37 if test -n "$hardcode_libdir_separator"; then 38 if test -n "$hardcode_libdir_separator"; then
38 if test -z "$hardcode_libdirs"; then 39 if test -z "$hardcode_libdirs"; then
39 hardcode_libdirs=$libdir 40 hardcode_libdirs=$libdir
40@@ -8352,6 +8358,10 @@ EOF 41@@ -8437,6 +8443,10 @@ EOF
41 hardcode_libdirs= 42 hardcode_libdirs=
42 for libdir in $finalize_rpath; do 43 for libdir in $finalize_rpath; do
43 if test -n "$hardcode_libdir_flag_spec"; then 44 if test -n "$hardcode_libdir_flag_spec"; then
@@ -48,3 +49,6 @@ diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
48 if test -n "$hardcode_libdir_separator"; then 49 if test -n "$hardcode_libdir_separator"; then
49 if test -z "$hardcode_libdirs"; then 50 if test -z "$hardcode_libdirs"; then
50 hardcode_libdirs=$libdir 51 hardcode_libdirs=$libdir
52--
532.25.1
54