Crosscompiling iproute2
From: Frank Wunderlich <hidden>
Date: 2021-05-16 14:52:02
Hi, i want to crosscompile (a modified version of) iproute2 (git://git.kernel.org/pub/scm/network/iproute2/iproute2.git) for armhf do you any idea how? configure-script seems to ignore "--host=arm-linux-gnueabihf" like i'm using for nftables i modified Makefile -CC := gcc +CC := arm-linux-gnueabihf-gcc -SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma dcb man vdpa +#SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma dcb man vdpa +SUBDIRS=ip and run make like this to use static linking: make LDFLAGS=-static but it seems ip always needs libutil make[1]: *** No rule to make target '../lib/libutil.a', needed by 'ip'. Stop. if i include lib in SUBDIRS i get many errors about missing libs like selinux and mnl regards Frank