Source: magic
Version: 8.1.223+ds.1-1
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

magic fails to cross build from source, because scripts/defs.mak.in hard
codes the build architecture ld rather than using the one detected by
configure. The attached patch fixes that and makes magic cross
buildable. Please consider applying it.

Helmut
--- magic-8.1.223+ds.1.orig/scripts/defs.mak.in
+++ magic-8.1.223+ds.1/scripts/defs.mak.in
@@ -48,8 +48,8 @@
 CP                     = cp
 AR                     = ar
 ARFLAGS                = crv
-LINK                   = ld -r
 LD                     = @LD@
+LINK                   = $(LD) -r
 M4		       = @M4@
 RANLIB                 = @RANLIB@
 SHDLIB_EXT             = @SHDLIB_EXT@

Reply via email to