lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 16 May 2021 14:17:45 -0700
From:   Stephen Hemminger <stephen@...workplumber.org>
To:     Frank Wunderlich <frank-w@...lic-files.de>
Cc:     netdev@...r.kernel.org
Subject: Re: Crosscompiling iproute2

On Sun, 16 May 2021 16:51:59 +0200
Frank Wunderlich <frank-w@...lic-files.de> wrote:

> 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

It is possible to mostly do a cross build if you do:

$ make CC="$CC" LD="$LD"
There are issues with netem local table generation


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ