termux-packages/packages/openfoam/etc-config.sh-mpi.patch
Henrik Grimler e02d9e00a6 OpenFOAM: add package
Build takes waaay to long for CI so:
%ci:no-build
2021-12-04 14:36:36 +01:00

12 lines
473 B
Diff

--- ../OpenFOAM-v1906/etc/config.sh/mpi 2019-06-26 16:16:55.000000000 +0200
+++ ./etc/config.sh/mpi 2019-09-01 18:04:06.370927263 +0200
@@ -52,7 +52,7 @@
_foamAddLibAuto $MPI_ARCH_PATH
else
# Slight hack: strip off 'lib' to get presumed prefix for include and libs
- libDir=$(mpicc --showme:link | sed -e 's/.*-L\([^ ]*\).*/\1/')
+ libDir=@TERMUX_PREFIX@/lib
export MPI_ARCH_PATH="${libDir%/*}"
_foamAddLib $libDir