summaryrefslogtreecommitdiffstats
path: root/nuttx/arch/x86
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-08-27 14:58:42 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-08-27 14:58:42 +0000
commite1a8bc740d260ae83be6ac997277191a379f8357 (patch)
tree8413ac81481f5882da4b2be180da0ed20c9c20ef /nuttx/arch/x86
parent66859cc7910397ce71cb6a564831d1f3ab70a425 (diff)
STM32 I2C fix, documentation update, fixes for FreeBSD/ASH build
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3917 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/x86')
-rw-r--r--nuttx/arch/x86/src/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/arch/x86/src/Makefile b/nuttx/arch/x86/src/Makefile
index e0e92eacdd..6be4053afd 100644
--- a/nuttx/arch/x86/src/Makefile
+++ b/nuttx/arch/x86/src/Makefile
@@ -81,6 +81,14 @@ BOARDDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src/board
LIBGCC = "${shell $(CC) -print-libgcc-file-name}"
+ifeq ($(HOSTOS),FreeBSD)
+ HOST_ARCH = ${shell uname -m 2>/dev/null || echo "Other"}
+ ifeq ($(HOST_ARCH),amd64)
+ LDFLAGS += -melf_i386
+ LIBGCC = "/usr/lib32/libgcc.a"
+ endif
+endif
+
VPATH = chip:common:$(ARCH_SUBDIR)
all: $(HEAD_OBJ) libarch$(LIBEXT)