summaryrefslogtreecommitdiff
path: root/Jamrules.jam
diff options
context:
space:
mode:
Diffstat (limited to 'Jamrules.jam')
-rw-r--r--Jamrules.jam19
1 files changed, 9 insertions, 10 deletions
diff --git a/Jamrules.jam b/Jamrules.jam
index 4907b7e..7cd9abc 100644
--- a/Jamrules.jam
+++ b/Jamrules.jam
@@ -1,8 +1,8 @@
# Rules for Jamfile.jam
-if ( $(toolset:I=^mingw) || $(toolset:I^=gcc) )
+if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) )
{
- if ( $(toolset:I^=gcc) )
+ if ( $(toolset:I=^gcc) )
{
GCCPATH = "" ;
}
@@ -13,12 +13,6 @@ if ( $(toolset:I=^mingw) || $(toolset:I^=gcc) )
CCFLAGS += -D$(defines) ;
- if ( $(toolset:I=^mingw3) )
- {
- # GCC3 does not have pragma diagnostic
- CCFLAGS += -Wno-deprecated-declarations ;
- }
-
if ( $(configuration) = "debug" )
{
CCFLAGS += -D_DEBUG ;
@@ -33,6 +27,11 @@ if ( $(toolset:I=^mingw) || $(toolset:I^=gcc) )
CCFLAGS += -fno-exceptions ;
}
+ if ( $(toolset:I=^mingw) )
+ {
+ LDFLAGS += -static-libgcc -static ;
+ }
+
actions ObjectAction
{
"$(GCCPATH)gcc" -W -Wall -Wextra -Werror -pedantic -c $(>) -o $(<) $(CCFLAGS)
@@ -40,12 +39,12 @@ if ( $(toolset:I=^mingw) || $(toolset:I^=gcc) )
actions LibraryAction
{
- "$(GCCPATH)ar" rc $(<) $(>)
+ "$(GCCPATH)ar" rcs $(<) $(>)
}
actions LinkAction
{
- "$(GCCPATH)g++" $(>) -o $(<) -static-libgcc -static $(LDFLAGS)
+ "$(GCCPATH)g++" $(>) -o $(<) $(LDFLAGS)
}
actions maxtargets 1 CoverageAction