Re: Crosscompiling iproute2
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-05-17 19:36:39
On Mon, 17 May 2021 09:44:21 +0200 Frank Wunderlich [off-list ref] wrote:
quoted
Gesendet: Sonntag, 16. Mai 2021 um 23:17 Uhr Von: "Stephen Hemminger" [off-list ref]quoted
It is possible to mostly do a cross build if you do: $ make CC="$CC" LD="$LD" There are issues with netem local table generationHi, thank you for your answer, but with this way i got this: ./normal > normal.dist ./normal: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory i guess it's the netem issue you've mentioned, imho i cannot install armhf-libs on ubuntu, so i disabled subdirs in Makefile beginning with netem -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 it seems to did it now $ file ip/ip ip/ip: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), statically linked, BuildID[sha1]=b36e094bc8681713d91ffe3a085ad4d3c6a1c5ea, for GNU/Linux 3.2.0, not stripped thank you regards Frank
Cross compile needs to know the compiler for building non-cross tools as well. This works for me: make CC="$CC" LD="$LD" HOSTCC=gcc