summaryrefslogtreecommitdiff
path: root/Jamrules.jam
diff options
context:
space:
mode:
Diffstat (limited to 'Jamrules.jam')
-rw-r--r--Jamrules.jam16
1 files changed, 16 insertions, 0 deletions
diff --git a/Jamrules.jam b/Jamrules.jam
index 5357e7e..a6dbc75 100644
--- a/Jamrules.jam
+++ b/Jamrules.jam
@@ -14,6 +14,20 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) )
if ( $(OS) != MACOSX )
{
LDFLAGS += -static-libgcc -static ;
+ ARCH = "" ;
+ }
+ else
+ {
+ if ( $(toolset:I=_x64) )
+ {
+ ARCH = -arch x86_64 ;
+ }
+ else if ( $(toolset:I=_ppc) )
+ {
+ ARCH = -arch ppc ;
+ }
+
+ LDFLAGS += $(ARCH) ;
}
rule GetCFlags CONFIG : DEFINES
@@ -46,6 +60,8 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) )
RESULT += -fno-exceptions ;
}
+ RESULT += $(ARCH) ;
+
return $(RESULT) ;
}