Source: prank
Version: 0.0.170427+dfsg-1
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

prank fails to cross build from source, because the upstream Makefile
uses the build architecture compiler as linker in the $(LINK) variable.
Since $(LINK) is not that standardized, debhelper doesn't pass it. I
think it would be best to have it default $(LINK) to $(CXX) as most of
the time that's what one wants. After doing so, prank cross builds
successfully and I think this patch should be upstreamable. Please
consider applying it.

Helmut
--- prank-0.0.170427+dfsg.orig/src/Makefile
+++ prank-0.0.170427+dfsg/src/Makefile
@@ -10,7 +10,7 @@
 CFLAGS       += -pipe -O3 $(DEFINES)
 CXXFLAGS     += -std=gnu++98 -pipe -O3 $(DEFINES)
 INCPATH       = -I. -I/usr/include
-LINK          = g++
+LINK          = $(CXX)
 #LFLAGS        = -m64
 LIBS          = $(SUBLIBS)    
 AR            = ar cqs

Reply via email to