Thread (13 messages) flat view 13 messages, 2 authors, 2021-05-26

Aw: Re: Crosscompiling iproute2

From: Frank Wunderlich <hidden>
Date: 2021-05-18 14:19:35

Gesendet: Montag, 17. Mai 2021 um 21:36 Uhr
Von: "Stephen Hemminger" [off-list ref]
An: "Frank Wunderlich" [off-list ref]
Cc: netdev@vger.kernel.org
Betreff: Re: Crosscompiling iproute2
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
Thanks, works for me too, also with dynamic linking (without "LDFLAGS=-static")

CROSS_COMPILE=arm-linux-gnueabihf-
make -j8 CC="${CROSS_COMPILE}gcc" LD="${CROSS_COMPILE}-ld" HOSTCC=gcc

only see warning

libnetlink.c:154:2: warning: #warning "libmnl required for error support" [-Wcpp]

but i guess i can ignore it

regards Frank
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help