Source: dhcp-helper
Version: 1.2-3.3
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

dhcp-helper fails to cross build from source, because it builds for the 
build architecture. In reality, it correctly builds for the host 
architecture during dh_auto_build and then during dh_auto_install 
rebuilds for the build architecture. This second rebuild happens, 
because Makefile dependencies are laid out less than ideal. I'm 
attaching a patch to skip this extra rebuild.

Helmut
--- dhcp-helper-1.2.orig/Makefile
+++ dhcp-helper-1.2/Makefile
@@ -5,7 +5,8 @@ MANDIR = ${PREFIX}/share/man
 CFLAGS?= -O2
 version= $(shell ./get-version)
 
-all: dhcp-helper.c
+all: dhcp-helper
+dhcp-helper: dhcp-helper.c
 	$(CC) $(CFLAGS) $(RPM_OPT_FLAGS) -DVERSION=\"$(version)\" -Wall -W dhcp-helper.c -o dhcp-helper
 
 clean:

Reply via email to