mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
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:
parent
94c7ed9a88
commit
30f4e3f018
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user