0011-Avoid-using-libdir-from-.la-which-usually-points-to-.patch 835 B

12345678910111213141516171819202122232425262728
  1. From e5463727ff028cee5e452da38f5b4c44d52e412e Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Fri, 20 Feb 2015 09:39:38 +0000
  4. Subject: [PATCH] Avoid using libdir from .la which usually points to a host
  5. path
  6. Upstream-Status: Inappropriate [embedded specific]
  7. Signed-off-by: Jonathan Liu <net147@gmail.com>
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. ltmain.sh | 3 +++
  11. 1 file changed, 3 insertions(+)
  12. diff --git a/ltmain.sh b/ltmain.sh
  13. index ee938056bef..9ebc7e3d1e0 100644
  14. --- a/ltmain.sh
  15. +++ b/ltmain.sh
  16. @@ -5628,6 +5628,9 @@ func_mode_link ()
  17. absdir="$abs_ladir"
  18. libdir="$abs_ladir"
  19. else
  20. + # Instead of using libdir from .la which usually points to a host path,
  21. + # use the path the .la is contained in.
  22. + libdir="$abs_ladir"
  23. dir="$libdir"
  24. absdir="$libdir"
  25. fi