boost: compiles with gcc-4.2

svn path=/nixpkgs/branches/stdenv-updates/; revision=9945
This commit is contained in:
Yury G. Kudryashov 2007-12-15 23:45:53 +00:00
parent 0c8d30be0f
commit f1f13ef432
2 changed files with 12 additions and 0 deletions

View File

@ -10,5 +10,6 @@ stdenv.mkDerivation {
preConfigure="
sed -e 's@^BJAM_CONFIG=\"\"@BJAM_CONFIG=\"--layout=system release threading=multi link=shared\"@g' -i configure
";
patches = [./gcc-4.2.patch];
configureFlags="--with-icu=${icu}";
}

View File

@ -0,0 +1,11 @@
Index: trunk/tools/jam/src/build.jam
===================================================================
--- trunk/tools/jam/src/build.jam (revision 40095)
+++ trunk/tools/jam/src/build.jam (revision 41036)
@@ -176,5 +176,5 @@
## GCC 2.x, 3.x, 4.x
toolset gcc gcc : "-o " : -D
- : -pedantic
+ : -pedantic -fno-strict-aliasing
[ opt --release : [ opt --symbols : -g : -s ] -O3 ]
[ opt --debug : -g -O0 -fno-inline ]