blob: 329b4c3612a527e6ab4f8766287c139b269dd53a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From 817aed0d755bf8c0ba4ef6a77d41538e50b571fd Mon Sep 17 00:00:00 2001
2From: claymore <carlosmf.pt@gmail.com>
3Date: Fri, 24 Apr 2015 02:28:47 +0100
4Subject: [PATCH 1/2] mips1 fix added gcc.jam was passing the options -m32 and
5 -m64 to mips cross-compilers, when those do not use
6 such options This modification solves it by adding mips
7 as an exception
8
9Signed-off-by: Carlos M. Ferreira carlosmf.pt@gmail.com
10
11Upstream-Status: Backport
12Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13
14---
15 tools/build/src/tools/gcc.jam | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
19index db04534..eff95ae 100644
20--- a/tools/build/src/tools/gcc.jam
21+++ b/tools/build/src/tools/gcc.jam
22@@ -451,7 +451,7 @@ rule setup-address-model ( targets * : sources * : properties * )
23 else
24 {
25 local arch = [ feature.get-values architecture : $(properties) ] ;
26- if $(arch) != arm
27+ if $(arch) != arm && $(arch) != mips1
28 {
29 if $(model) = 32
30 {
31--
321.7.9.5
33