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

hcxdumptool fails to cross build from source. It first cross builds
correctly and then make install rebuilds the tools with the wrong
compiler again. This is due to bad makefile dependencies. Please
consider applying the attached patch to fix the dependencies.

I also note that debian/rules violates Debian Policy section 6.4, but
I'm too lazy to file an RC bug now.

Helmut
--- hcxdumptool-5.1.7.orig/Makefile
+++ hcxdumptool-5.1.7/Makefile
@@ -15,13 +15,16 @@
 
 all: build
 
-build:
 ifeq ($(HOSTOS), Linux)
-	$(CC) $(CFLAGS) $(CPPFLAGS) -o hcxpioff hcxpioff.c $(LDFLAGS)
-	$(CC) $(CFLAGS) $(CPPFLAGS) -o hcxdumptool hcxdumptool.c $(LDFLAGS)
+build:hcxpioff hcxdumptool
 else
+build:
 	$(info OS not supported)
 endif
+hcxpioff:hcxpioff.c
+	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(LDFLAGS)
+hcxdumptool:hcxdumptool.c
+	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(LDFLAGS)
 
 install: build
 ifeq ($(HOSTOS), Linux)

Reply via email to