From e6aa07655b61ebea52995175cf5b536431ecaa01 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Sun, 4 Mar 2012 14:00:26 +0000 Subject: [PATCH] tools: do not apply -m32 for gcc on ARM [SVN r77216] --- v2/tools/gcc.jam | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v2/tools/gcc.jam b/v2/tools/gcc.jam index f2cc572d3..453c06ef8 100644 --- a/v2/tools/gcc.jam +++ b/v2/tools/gcc.jam @@ -446,7 +446,11 @@ rule setup-address-model ( targets * : sources * : properties * ) } else { - if $(model) = 32 + # do not apply -m32 for ARM platform, because this + # option is not valid on ARM + # FIXME: use property architecture instead os.platform + # FIXME: unfortunately architecture seams not to be set + if $(model) = 32 && [ os.platform ] != ARM { option = -m32 ; }