summarylogtreecommitdiffstats
path: root/settings.patch
diff options
context:
space:
mode:
authorGeorge Eleftheriou2015-07-16 11:10:23 +0200
committerGeorge Eleftheriou2015-07-16 11:10:23 +0200
commite667a7260a317df2c8079263808cafbf5177656a (patch)
tree9365c3889d3d76fd0bc531665444274bb6c2ff76 /settings.patch
downloadaur-e667a7260a317df2c8079263808cafbf5177656a.tar.gz
Initial import
Diffstat (limited to 'settings.patch')
-rw-r--r--settings.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/settings.patch b/settings.patch
new file mode 100644
index 000000000000..1c829ef662b1
--- /dev/null
+++ b/settings.patch
@@ -0,0 +1,16 @@
+--- src/OpenFOAM-2.3.1/etc/config/settings.sh
++++ src/OpenFOAM-2.3.1/etc/config/settings.sh
+@@ -406,9 +406,12 @@
+
+ # Bit of a hack: strip off 'lib' and hope this is the path to openmpi
+ # include files and libraries.
+- export MPI_ARCH_PATH="${libDir%/*}"
++ # More of a hack: On arch we need to strip off the openmpi library subdir first, so do it twice
++ tmplibDir="${libDir%/*}"
++ export MPI_ARCH_PATH="${tmplibDir%/*}"
+
+ _foamAddLib $libDir
++ unset tmplibDir
+ unset libDir
+ ;;
+