summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2009-12-02 15:25:01 +0000
committerDirkjan Ochtman <djc@gentoo.org>2009-12-02 15:25:01 +0000
commit4fa5f98b045e73a898ee42d4c4a5388af9bc2e47 (patch)
treeb17ba57bf0ff28756ca317b5e1cccc679d50b7c5 /dev-util/boost-build/files
parentstable sparc, bug 282907 (diff)
downloadhistorical-4fa5f98b045e73a898ee42d4c4a5388af9bc2e47.tar.gz
historical-4fa5f98b045e73a898ee42d4c4a5388af9bc2e47.tar.bz2
historical-4fa5f98b045e73a898ee42d4c4a5388af9bc2e47.zip
Version bump dev-util/boost-build to 1.41.0.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'dev-util/boost-build/files')
-rw-r--r--dev-util/boost-build/files/boost-1.41-fix-mpich2-detection.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-util/boost-build/files/boost-1.41-fix-mpich2-detection.patch b/dev-util/boost-build/files/boost-1.41-fix-mpich2-detection.patch
new file mode 100644
index 000000000000..d3bd646a8ebb
--- /dev/null
+++ b/dev-util/boost-build/files/boost-1.41-fix-mpich2-detection.patch
@@ -0,0 +1,35 @@
+Index: tools/build/v2/tools/mpi.jam
+===================================================================
+--- tools/build/v2/tools/mpi.jam (revision 57744)
++++ tools/build/v2/tools/mpi.jam (working copy)
+@@ -156,14 +156,27 @@
+ # into a feature.
+ local match = [ MATCH "^(-.)(.*)" : $(cmdline) ] ;
+ local matched ;
+- if $(match) && $(match[2]) {
++ if $(match) && $(match[2]) {
+ local prefix = $(match[1]) ;
+ if $(feature_kinds$(prefix)) {
+ local name = $(feature_kinds$(prefix)) ;
+ local add = [ add_feature $(prefix) $(name) $(cmdline) ] ;
+
+ if $(add) {
+- result += $(add[1]) ;
++
++ if $(add[1]) = <find-shared-library>pthread
++ {
++ # Uhm. It's not really nice that this MPI implementation
++ # uses -lpthread as opposed to -pthread. We do want to
++ # set <threading>multi, instead of -lpthread.
++ result += "<threading>multi" ;
++ MPI_EXTRA_REQUIREMENTS += "<threading>multi" ;
++ }
++ else
++ {
++ result += $(add[1]) ;
++ }
++
+ cmdline = $(add[2]) ;
+ matched = yes ;
+ }
+