eclass/coreos-kernel: Clear LDFLAGS for kernel

The LDFLAGS setting for package building is generally not suitable for building
the kernel, and on some architectures will even lead to kernel build errors.

Fixes errors like these on kernel architectures that do not set the LDFLAGS
variable:

  ld: unrecognized option '-Wl,-O1'

Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
Geoff Levand 2015-06-17 16:57:58 -07:00
parent 94c7ed9a88
commit 30f4e3f018

View File

@ -84,7 +84,7 @@ update_bootengine_cpio() {
kmake() {
local kernel_arch=$(tc-arch-kernel)
emake ARCH="${kernel_arch}" CROSS_COMPILE="${CHOST}-" "$@"
emake LDFLAGS="" ARCH="${kernel_arch}" CROSS_COMPILE="${CHOST}-" "$@"
}
# Discard the module signing key, we use new keys for each build.