All of lore.kernel.org
 help / color / mirror / Atom feed
* Crosscompiling iproute2
@ 2021-05-16 14:51 Frank Wunderlich
  2021-05-16 21:17 ` Stephen Hemminger
  0 siblings, 1 reply; 13+ messages in thread
From: Frank Wunderlich @ 2021-05-16 14:51 UTC (permalink / raw)
  To: netdev

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-05-26  7:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-16 14:51 Crosscompiling iproute2 Frank Wunderlich
2021-05-16 21:17 ` Stephen Hemminger
2021-05-17  7:44   ` Aw: " Frank Wunderlich
2021-05-17 19:36     ` Stephen Hemminger
2021-05-18 14:19       ` Aw: " Frank Wunderlich
2021-05-24 19:06       ` Frank Wunderlich
2021-05-24 21:36         ` Stephen Hemminger
2021-05-25 15:56           ` Frank Wunderlich
2021-05-25 16:08             ` Stephen Hemminger
2021-05-25 18:18               ` Aw: " Frank Wunderlich
2021-05-25 21:37                 ` Stephen Hemminger
2021-05-26  7:28                   ` Aw: " Frank Wunderlich
2021-05-25 13:30         ` Frank Wunderlich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.