1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Fix crossbuilding problem using AC_CHECK_TOOL for ld instead of detecting the build architecture linker using AC_CHECK_PROG
Author: Helmut Grohne <helmut@subdivi.de>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941843
Last-Update: 2021-01-22
--- a/configure.ac
+++ b/configure.ac
@@ -270,8 +270,11 @@
AC_CHECK_PROG(ac_prog_ar,$AR,$AR,false)
# check linker:
-test -n "$LD" || LD=ld
-AC_CHECK_PROG(ac_prog_ld,$LD,$LD,false)
+AS_IF([test -n "$LD"],[
+ AC_CHECK_PROG(ac_prog_ld,$LD,$LD,false)
+],[
+ AC_CHECK_TOOL(ac_prog_ld,ld,false)
+])
# check ranlib:
test -n "$RANLIB" || RANLIB=ranlib
|