More fixe for FreeBSD build

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3919 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-08-28 12:32:14 +00:00
parent 950bc398ed
commit b2aa4ae2df
2 changed files with 14 additions and 0 deletions

View File

@ -66,6 +66,13 @@ ARCHPICFLAGS = -fpic
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
ARCHDEFINES = 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 # We have to use a cross-development toolchain under Cygwin because the native
# Cygwin toolchains don't generate ELF binaries. # Cygwin toolchains don't generate ELF binaries.

View File

@ -66,6 +66,13 @@ ARCHPICFLAGS = -fpic
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
ARCHDEFINES = 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 # We have to use a cross-development toolchain under Cygwin because the native
# Cygwin toolchains don't generate ELF binaries. # Cygwin toolchains don't generate ELF binaries.