summaryrefslogtreecommitdiff
path: root/nuttx/configs/qemu-i486/nsh/Make.defs
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/qemu-i486/nsh/Make.defs')
-rw-r--r--nuttx/configs/qemu-i486/nsh/Make.defs7
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/configs/qemu-i486/nsh/Make.defs b/nuttx/configs/qemu-i486/nsh/Make.defs
index d18c80293..ff8d3dd6b 100644
--- a/nuttx/configs/qemu-i486/nsh/Make.defs
+++ b/nuttx/configs/qemu-i486/nsh/Make.defs
@@ -66,6 +66,13 @@ ARCHPICFLAGS = -fpic
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
ARCHDEFINES =
+ifeq ($(HOSTOS),FreeBSD)
+ HOST_ARCH = ${shell uname -m 2>/dev/null || echo "Other"}
+ ifeq ($(HOST_ARCH),amd64)
+ ARCHCPUFLAGS += -m32
+ endif
+endif
+
# We have to use a cross-development toolchain under Cygwin because the native
# Cygwin toolchains don't generate ELF binaries.