Source: pcapfix
Version: 1.1.0-2
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

pcapfix fails to cross build from source, because the upstream Makefile
hard codes the build architecture compiler gcc. After making it
substitutable, pcapfix cross builds successfully. Please consider
applying the attached patch.

Helmut
Index: pcapfix-1.1.0/Makefile
===================================================================
--- pcapfix-1.1.0.orig/Makefile
+++ pcapfix-1.1.0/Makefile
@@ -10,13 +10,13 @@
 LDFLAGS += -Wl,-z,relro
 
 all: pcap pcapng
-	gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) pcapfix.c pcap.o pcapng.o -o pcapfix
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) pcapfix.c pcap.o pcapng.o -o pcapfix
 
 pcap: pcap.c
-	gcc $(CPPFLAGS) $(CFLAGS) -c pcap.c -o pcap.o
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c pcap.c -o pcap.o
 
 pcapng: pcapng.c
-	gcc $(CPPFLAGS) $(CFLAGS) -c pcapng.c -o pcapng.o
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c pcapng.c -o pcapng.o
 
 install:
 	install -pDm755 pcapfix $(DESTDIR)$(BINDIR)/pcapfix

Reply via email to