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