1
0

110-dont-use-target-dir-for-relinking.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 375833af93999f8b0a747c8a1dfa3ec8d347743d Mon Sep 17 00:00:00 2001
  2. From: Eneas U de Queiroz <cotequeiroz@gmail.com>
  3. Date: Tue, 20 Jul 2021 16:52:37 -0300
  4. Subject: librecmc: don't use target dir for relinking
  5. This was originally commited to librecmc by Jo-Philipp Wich
  6. <jow@openwrt.org>.
  7. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
  8. --- a/build-aux/ltmain.in
  9. +++ b/build-aux/ltmain.in
  10. @@ -6482,13 +6482,13 @@ func_mode_link ()
  11. add_dir=
  12. add=
  13. # Finalize command for both is simple: just hardcode it.
  14. - if test yes = "$hardcode_direct" &&
  15. - test no = "$hardcode_direct_absolute"; then
  16. - add=$libdir/$linklib
  17. - elif test yes = "$hardcode_minus_L"; then
  18. + if test "$hardcode_direct" = yes &&
  19. + test "$hardcode_direct_absolute" = no; then
  20. + add="$libdir/$linklib"
  21. + elif test "$hardcode_minus_L" = yes; then
  22. add_dir=-L$libdir
  23. - add=-l$name
  24. - elif test yes = "$hardcode_shlibpath_var"; then
  25. + add="-l$name"
  26. + elif test "$hardcode_shlibpath_var" = yes; then
  27. case :$finalize_shlibpath: in
  28. *":$libdir:"*) ;;
  29. *) func_append finalize_shlibpath "$libdir:" ;;