0001-Fix-linking-error-on-mips64el.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From ddb06335935ef1458fe98f99cdc5d5fe6757fd02 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Wed, 3 Oct 2018 19:06:40 +0200
  4. Subject: [PATCH] Fix linking error on mips64el
  5. Patch that was fixing build on mips64el was reverted:
  6. https://github.com/brltty/brltty/commit/9e7d62c869d3c1cbe12dda8b0291a4692c193416
  7. So fix the issue again, this time by checking if $(GCC) is available as
  8. suggested by Arnout during review of buildroot patch:
  9. https://patchwork.ozlabs.org/patch/972614
  10. Fixes:
  11. - http://autobuild.buildroot.org/results/31f682838b3d3b2c7103b5c51f2aba0b89d4f630
  12. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  13. [Upstream status: https://github.com/brltty/brltty/pull/149]
  14. ---
  15. configure.ac | 7 ++++++-
  16. 1 file changed, 6 insertions(+), 1 deletion(-)
  17. diff --git a/configure.ac b/configure.ac
  18. index 1e2774abf..a488d3d52 100644
  19. --- a/configure.ac
  20. +++ b/configure.ac
  21. @@ -481,7 +481,12 @@ AC_CACHE_CHECK([for make relocatable object command], [brltty_cv_prog_make_objec
  22. case "${host_os}"
  23. in
  24. *)
  25. - brltty_cv_prog_make_object_relocatable="\$(LD) -r -o"
  26. + if test "${GCC}" = "yes"
  27. + then
  28. + brltty_cv_prog_make_object_relocatable="\$(CC) -shared -o"
  29. + else
  30. + brltty_cv_prog_make_object_relocatable="\$(LD) -r -o"
  31. + fi
  32. ;;
  33. esac])
  34. MKREL="${brltty_cv_prog_make_object_relocatable}"
  35. --
  36. 2.17.1