summaryrefslogtreecommitdiffstats
path: root/boost/build/boost_bjam-gcc42.patch
blob: b8625c22c91ff8b2b6859d973577e1734545d434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Index: Jamfile.v2
--- Jamfile.v2.orig	2007-05-11 05:40:34 +0200
+++ Jamfile.v2	2007-06-17 12:43:12 +0200
@@ -112,12 +112,12 @@
     default-build =
         debug release
         <threading>single <threading>multi
-        <link>shared <link>static
+        <link>static
         ;
     
     if [ os.name ] = NT
     {
-        default-build += <runtime-link>shared <runtime-link>static ;
+        default-build += <runtime-link>static ;
     }
 }
 else

Workaround for "bjam crashes when compiled with gcc 4.2" http://svn.boost.org/trac/boost/ticket/977
Index: tools/jam/src/build.sh
--- tools/jam/src/build.sh.orig	2006-02-03 17:57:42 +0100
+++ tools/jam/src/build.sh	2007-06-17 13:54:31 +0200
@@ -127,7 +127,7 @@
     ;;
     
     gcc)
-    BOOST_JAM_CC=gcc
+    BOOST_JAM_CC="gcc -O0"
     ;;
     
     darwin)
Index: tools/jam/src/build.jam
--- tools/jam/src/build.jam.orig	2007-06-17 14:07:34 +0200
+++ tools/jam/src/build.jam	2007-06-17 14:08:21 +0200
@@ -153,7 +153,7 @@
 ## GCC 2.x, 3.x, 4.x
 toolset gcc gcc : "-o " : -D
     : -pedantic
-    [ opt --release : [ opt --symbols : -g : -s ] -O3 ]
+    [ opt --release : [ opt --symbols : -g : -s ] -O0 ]
     [ opt --debug : -g -O0 -fno-inline ]
     -I$(--python-include) -Wno-long-long
     : -L$(--python-lib[1]) -l$(--python-lib[2]) ;