Source: plotnetcfg Version: 0.4.1-3 Tags: patch upstream User: [email protected] Usertags: ftcbfs
plotnetcfg fails to cross build from source, because the upstream hard codes the build architecture pkg-config and gcc. The attached patch fixes that. Please consider applying it. Helmut
--- plotnetcfg-0.4.1.orig/Makefile +++ plotnetcfg-0.4.1/Makefile @@ -1,5 +1,6 @@ +PKG_CONFIG?=pkg-config ifeq ($(jansson),) -libs=$(shell pkg-config --libs jansson) +libs=$(shell $(PKG_CONFIG) --libs jansson) else libs=$(jansson)/src/.libs/libjansson.a INCLUDE=-I$(jansson)/src @@ -13,7 +14,7 @@ handlers/bridge.o handlers/master.o handlers/openvswitch.o handlers/veth.o \ handlers/vlan.o \ frontends/dot.o frontends/json.o - gcc $(LDFLAGS) -o $@ $+ $(libs) + $(CC) $(LDFLAGS) -o $@ $+ $(libs) args.o: args.c args.h ethtool.o: ethtool.c ethtool.h

