summaryrefslogtreecommitdiff
path: root/Jamrules.jam
diff options
context:
space:
mode:
Diffstat (limited to 'Jamrules.jam')
-rw-r--r--Jamrules.jam13
1 files changed, 13 insertions, 0 deletions
diff --git a/Jamrules.jam b/Jamrules.jam
index a6dbc75..9c6c018 100644
--- a/Jamrules.jam
+++ b/Jamrules.jam
@@ -360,6 +360,17 @@ else if ( $(toolset:I=^bcc) )
}
else if ( $(toolset:I=^suncc) )
{
+ if ( $(toolset:I=_x64) )
+ {
+ ARCH = -m64 ;
+ }
+ else
+ {
+ ARCH = -m32 ;
+ }
+
+ LDFLAGS += $(ARCH) ;
+
rule GetCFlags CONFIG : DEFINES
{
local RESULT = -D$(DEFINES) ;
@@ -380,6 +391,8 @@ else if ( $(toolset:I=^suncc) )
RESULT += -noex ;
}
+ RESULT += $(ARCH) ;
+
return $(RESULT) ;
}