Source: htp
Version: 1.19-8
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

htp fails to cross build from source, because it runs the build 
architecture compiler as linker. The Makefile.config uses CC and LINK as 
separte variables holding "gcc" and dh_auto_build only substitutes the 
former. I recommend defaulting LINK to $(CC) as most commonly when you 
want to use something other than gcc, you want to also use that as 
linker. This retains the ability to choose them separately. If upstream 
does not like this change, consider adding LINK='$$(CC)' to the 
dh_auto_build override. I'm attaching my preferred solution as patch.

Helmut
--- htp-1.19.orig/Makefile.config
+++ htp-1.19/Makefile.config
@@ -20,7 +20,7 @@
 OS = Win32
 else
 CC = gcc
-LINK = gcc
+LINK = $(CC)
 OBJEXT = o
 EXEEXT = 
 OS := $(shell uname -s)-$(shell uname -m)

Reply via email to