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