Source: routino
Version: 3.4.3-2
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
routino fails to cross build from source, because it uses the build
architecture compiler as linker. The upstream Makefiles use the LD
variable for linking and defaults it to gcc separately to CC.
Unfortunately, use of LD is inconsistent across upstream projects as
some use it for ld and others use it for gcc. Therefore, dh_auto_build
does not set LD and this is why the default is retained. I propose
changing its default upstream such that LD is initialized from CC. This
retains the user's ability to change LD separately from CC during build,
but when the user (or dh_auto_build) just sets CC, it'll get copied into
LD. Please find a patch attached.
Helmut
Index: routino-3.4.3/Makefile.conf
===================================================================
--- routino-3.4.3.orig/Makefile.conf
+++ routino-3.4.3/Makefile.conf
@@ -71,13 +71,13 @@ LIBVERSION=$(SOVERSION).0.0
# Compilation programs
CC=gcc
CXX=g++
-LD=gcc
+LD=$(CC)
ifdef CLANG
ifeq ($(CLANG),1)
CC=clang
CXX=clang++
- LD=clang
+ LD=$(CC)
endif
endif