From 64d40b29932ba19b2536f0b939fee4db7c2c96de Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 7 Apr 2011 00:42:46 +0000 Subject: [PATCH] m9s12x toolchain Ubuntu 9.10 build fix git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3476 42af7a65-404d-4744-a932-0658087f49c3 --- configs/qemu-i486/README.txt | 6 +++++- configs/qemu-i486/nsh/Make.defs | 1 + configs/qemu-i486/ostest/Make.defs | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configs/qemu-i486/README.txt b/configs/qemu-i486/README.txt index 9065915344..254f8a1314 100644 --- a/configs/qemu-i486/README.txt +++ b/configs/qemu-i486/README.txt @@ -137,7 +137,11 @@ FAQ === Q: I get the following error message, "undefined reference to '__stack_chk_fail'" -A: Add -fno-stack-protector to ARCHCPUFLAGS in you Make.defs file. +A: Add -fno-stack-protector to ARCHCPUFLAGS in you Make.defs file. Switch the + commenting on the following two lines in the Make.defs file: + + ARCHCPUFLAGS = -march=i486 -mtune=i486 -fno-builtin + #ARCHCPUFLAGS = -march=i486 -mtune=i486 -fno-builtin -fno-stack-protector Configurations ============== diff --git a/configs/qemu-i486/nsh/Make.defs b/configs/qemu-i486/nsh/Make.defs index 8a30d09fd8..d18c802931 100644 --- a/configs/qemu-i486/nsh/Make.defs +++ b/configs/qemu-i486/nsh/Make.defs @@ -61,6 +61,7 @@ else endif ARCHCPUFLAGS = -march=i486 -mtune=i486 -fno-builtin +#ARCHCPUFLAGS = -march=i486 -mtune=i486 -fno-builtin -fno-stack-protector ARCHPICFLAGS = -fpic ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow ARCHDEFINES = diff --git a/configs/qemu-i486/ostest/Make.defs b/configs/qemu-i486/ostest/Make.defs index 4cd8f57747..5851427e65 100644 --- a/configs/qemu-i486/ostest/Make.defs +++ b/configs/qemu-i486/ostest/Make.defs @@ -61,6 +61,7 @@ else endif ARCHCPUFLAGS = -march=i486 -mtune=i486 -fno-builtin +#ARCHCPUFLAGS = -march=i486 -mtune=i486 -fno-builtin -fno-stack-protector ARCHPICFLAGS = -fpic ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow ARCHDEFINES =