summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/binutils/binutils-linaro-2.25/libtool-rpath-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/binutils/binutils-linaro-2.25/libtool-rpath-fix.patch')
-rw-r--r--recipes-devtools/binutils/binutils-linaro-2.25/libtool-rpath-fix.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-devtools/binutils/binutils-linaro-2.25/libtool-rpath-fix.patch b/recipes-devtools/binutils/binutils-linaro-2.25/libtool-rpath-fix.patch
new file mode 100644
index 0000000..5240910
--- /dev/null
+++ b/recipes-devtools/binutils/binutils-linaro-2.25/libtool-rpath-fix.patch
@@ -0,0 +1,39 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3Enabling sysroot support in libtool exposed a bug where the final
4library had an RPATH encoded into it which still pointed to the
5sysroot. This works around the issue until it gets sorted out
6upstream.
7
8Fix suggested by Richard Purdie <richard.purdie@linuxfoundation.org>
9Signed-off-by: Scott Garman <scott.a.garman@intel.com>
10
11Forward ported to 2.25 by Koen Kooi <koen.kooi@linaro.org>
12
13--
14diff --git a/ltmain.sh b/ltmain.sh
15index 9503ec8..639f201 100644
16--- a/ltmain.sh
17+++ b/ltmain.sh
18@@ -7104,6 +7104,10 @@ EOF
19 test "$mode" != relink && rpath="$compile_rpath$rpath"
20 for libdir in $rpath; do
21 if test -n "$hardcode_libdir_flag_spec"; then
22+ func_replace_sysroot "$libdir"
23+ libdir=$func_replace_sysroot_result
24+ func_stripname '=' '' "$libdir"
25+ libdir=$func_stripname_result
26 if test -n "$hardcode_libdir_separator"; then
27 if test -z "$hardcode_libdirs"; then
28 hardcode_libdirs="$libdir"
29@@ -7799,6 +7803,10 @@ EOF
30 hardcode_libdirs=
31 for libdir in $compile_rpath $finalize_rpath; do
32 if test -n "$hardcode_libdir_flag_spec"; then
33+ func_replace_sysroot "$libdir"
34+ libdir=$func_replace_sysroot_result
35+ func_stripname '=' '' "$libdir"
36+ libdir=$func_stripname_result
37 if test -n "$hardcode_libdir_separator"; then
38 if test -z "$hardcode_libdirs"; then
39 hardcode_libdirs="$libdir"