'tried to crosscompile linux kernel

I tried to make it with

make ARCH="aarch64" CC="aarch64-alpine-linux-musl-" CROSS_COMPILE="aarch64-alpine-linux-musl-gcc" HOSTCC="gcc" LDFLAGS="--allow-multiple-definition" HOSTLDFLAGS="--allow-multiple-definition" HOSTCFLAGS="" 

and I got strange error

HOSTLD  scripts/kconfig/conf
gcc: error: unrecognized command-line option '--allow-multiple-definition'

that's weird because I never passed flags with HOSTCCFLAGS



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source