boards/sim/sim/sim/configs:: Add -m32 to HOSTLDFLAGS if enable CONFIG_SIM_M32

fix the following link error:
/usr/bin/ld: i386 architecture of input file `nettest_host.hobj' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `nettest_server.hobj' is incompatible with i386:x86-64 output
This commit is contained in:
Xiang Xiao 2019-10-19 06:57:36 -06:00 committed by Gregory Nutt
parent 1ba23bb75c
commit 946b13559b
3 changed files with 4 additions and 4 deletions

View file

@ -125,6 +125,7 @@ ifeq ($(CONFIG_SIM_M32),y)
LDLINKFLAGS += -melf_i386
CCLINKFLAGS += -m32
LDFLAGS += -m32
HOSTLDFLAGS += -m32
endif
MKDEP = $(TOPDIR)/tools/mkdeps$(HOSTEXEEXT)
@ -133,4 +134,3 @@ HOSTCC = gcc
HOSTINCLUDES = -I.
HOSTCFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
$(ARCHCPUFLAGS) $(HOSTINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
HOSTLDFLAGS =

View file

@ -116,7 +116,8 @@ endif
ifeq ($(CONFIG_SIM_M32),y)
LDLINKFLAGS += -melf_i386
CCLINKFLAGS += -m32
LDFLAGS += -m32
LDFLAGS += -m32
HOSTLDFLAGS += -m32
endif
@ -126,4 +127,3 @@ HOSTCC = gcc
HOSTINCLUDES = -I.
HOSTCFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
$(ARCHCPUFLAGS) $(HOSTINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
HOSTLDFLAGS =

View file

@ -124,6 +124,7 @@ ifeq ($(CONFIG_SIM_M32),y)
LDLINKFLAGS += -melf_i386
CCLINKFLAGS += -m32
LDFLAGS += -m32
HOSTLDFLAGS += -m32
endif
@ -133,4 +134,3 @@ HOSTCC = gcc
HOSTINCLUDES = -I.
HOSTCFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
$(ARCHCPUFLAGS) $(HOSTINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
HOSTLDFLAGS =