Source: psignifit
Version: 2.5.6-4
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

psignifit fails to cross build from source, because it uses the build
architecture compiler "gcc" as linker. The upstream makefile variable LD
contains other stuff, so it doesn't supplying it isn't easy. I think the
best solution is to derive LD from CC as the latter is supplied by
dh_auto_build. After doing so, psignifit cross builds successfuly. I
think this patch should be upstreamable. Please consider using it.

Helmut
--- psignifit-2.5.6.orig/psig-src/Makefile
+++ psignifit-2.5.6/psig-src/Makefile
@@ -16,7 +16,7 @@
 CFLAGS += $(CYGFLAG) $(DBFLAG)
 CXX = g++
 CXXFLAGS += $(CYGFLAG) $(DBFLAG)
-LD = gcc $(CYGFLAG) $(DBFLAG)
+LD = $(CC) $(CYGFLAG) $(DBFLAG)
 # add '-lm' flag for Debian GNU/Linux
 LIBS = -lm
 DEPEND_FLAG = -MM  # GNU compilers support -MM, others may only support -M

Reply via email to