Source: tracetuner
Version: 3.0.6~beta+dfsg-1
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

tracetuner fails to cross build from source, because it seeds the LINK.c
variable from the build architecture compiler in two occasions.
Defaulting them to $(CXX) fixes the cross build failure and should be
acceptable upstream. Please consider applying the attached patch.

Helmut
--- tracetuner-3.0.6~beta+dfsg.orig/src/mkchk/Makefile
+++ tracetuner-3.0.6~beta+dfsg/src/mkchk/Makefile
@@ -37,7 +37,7 @@
 CFLAGS     += -I$(INCTOOLSDIR)/io_lib
 CFLAGS     += -I$(INCTOOLSDIR)/io_lib/utils $(EXTRACFLAGS)
 
-LINK.c = g++
+LINK.c = $(CXX)
 
 $(RELDIR)/checkqv: $(CHECKQVOBJS) $(TTLIB)
 	@mkdir -p $(RELDIR)
--- tracetuner-3.0.6~beta+dfsg.orig/src/mklut/Makefile
+++ tracetuner-3.0.6~beta+dfsg/src/mklut/Makefile
@@ -57,7 +57,7 @@
 	mkdir -p $(OBJDIR)
 	$(COMPILE.c) $< -o $@
 
-LINK.c = g++
+LINK.c = $(CXX)
 
 $(RELDIR)/lut: $(LUTOBJS) $(TTLIB) 
 	@mkdir -p $(RELDIR)

Reply via email to