summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/ELT-patches/cross/2.2')
-rw-r--r--eclass/ELT-patches/cross/2.220
1 files changed, 20 insertions, 0 deletions
diff --git a/eclass/ELT-patches/cross/2.2 b/eclass/ELT-patches/cross/2.2
new file mode 100644
index 00000000000..e8fc2be5210
--- /dev/null
+++ b/eclass/ELT-patches/cross/2.2
@@ -0,0 +1,20 @@
+--- ltmain.sh
++++ ltmain.sh
+@@ -5768,7 +5768,7 @@
+ test "$hardcode_direct_absolute" = no; then
+ add="$libdir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+- add_dir="-L$libdir"
++ add_dir="-L${SYSROOT}$libdir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+@@ -5785,7 +5785,7 @@
+ fi
+ else
+ # We cannot seem to hardcode it, guess we'll fake it.
+- add_dir="-L$libdir"
++ add_dir="-L${SYSROOT}/$libdir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in