Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] Keep HOSTCFLAG and HOSTLDFLAGS consistent when Making Linux Kernel
@ 2017-07-28 23:56 Jianming.qiao
  2017-07-29 13:04 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Jianming.qiao @ 2017-07-28 23:56 UTC (permalink / raw)
  To: buildroot

From: "Jianming.qiao" <kiki-good@hotmail.com>

A build error is spotted when adding -m32 in Linux kernel Makefile for 
both host compiler flag and Host linker flag for compiling linux kernel in 64bit Host.
When building with buildroot, an error shows the host linker can't link the .o file
generated by host compiler because -m32 host Linker flag doesn't append to the host linker, 
thereby trying to link 32 bit object files in 64bit mode(without adding -m32 in host linker flag).

Therefore,both host compiler flag and host linker flag should both appear in the LINUX_MAKE_FLAGS.

Signed-off-by: Jianming.qiao <kiki-good@hotmail.com>
---
 linux/linux.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/linux/linux.mk b/linux/linux.mk
index 032d64f..a97886d 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -97,6 +97,7 @@ endif
 LINUX_MAKE_FLAGS = \
 	HOSTCC="$(HOSTCC)" \
 	HOSTCFLAGS="$(HOSTCFLAGS)" \
+	HOSTLDFLAGS="$(HOST_LDFLAGS)" \
 	ARCH=$(KERNEL_ARCH) \
 	INSTALL_MOD_PATH=$(TARGET_DIR) \
 	CROSS_COMPILE="$(TARGET_CROSS)" \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-16 22:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-28 23:56 [Buildroot] [PATCH 1/1] Keep HOSTCFLAG and HOSTLDFLAGS consistent when Making Linux Kernel Jianming.qiao
2017-07-29 13:04 ` Thomas Petazzoni
2017-08-16 22:51   ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox