Source: fastml
Version: 3.11-1
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

fastml fails to cross build from source, because it uses both CC and CXX
for a C++ compiler, but dh_auto_build passes a C compiler for CC. The
use is kinda implicit via builtin make rules. The attached patch makes
the relevant rule explicit and thus removes the use of CC to make fastml
cross buildable. Please consider applying it.

Helmut
--- fastml-3.11.orig/programs/Makefile.generic
+++ fastml-3.11/programs/Makefile.generic
@@ -17,9 +17,7 @@
 
 all: lib $(EXEC)
 
-#CC=g++
 CXX=g++
-CC=$(CXX)
 
 libDir=../../libs/phylogeny
 binDir=../../bin
@@ -112,6 +110,7 @@
 #$(EXEC) $(TEST_EXEC): $(LIB) #$(EVOLLIB)
 #$(EXEC) $(TEST_EXEC): $(LIB) $(EVOLLIB)
 $(EXEC) $(TEST_EXEC): $(LocalLib) $(libEvol)
+	$(CXX) $(LDFLAGS) $^ -o $@
 $(DEBUGEXEC) $(TEST_EXEC): $(DEBUGLIB) $(libEvolDebug)
 
 tests: $(TEST_EXEC) $(EXEC)

Reply via email to