File: cross.patch

package info (click to toggle)
fitsh 0.9.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,024 kB
  • sloc: ansic: 56,150; makefile: 1,147; sh: 806
file content (20 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (2)
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