parent
50eeca2257
commit
368aa57cb7
@ -35,21 +35,10 @@ stdenv.mkDerivation rec {
|
|||||||
makeFlagsArray+=(CFLAGS="${cflags}")
|
makeFlagsArray+=(CFLAGS="${cflags}")
|
||||||
'' else "");
|
'' else "");
|
||||||
|
|
||||||
postPatch = ""
|
# HACK: This should be fixed in the Makefile.
|
||||||
|
postPatch = ''
|
||||||
# This should be fixed in the Makefile as well.
|
sed -i 's/libtampi.a/libtampi-c.a/g' Makefile
|
||||||
+ ''sed -i 's/libtampi.a/libtampi-c.a/g' Makefile
|
'';
|
||||||
''
|
|
||||||
# Dirty HACK until the nbody issue at:
|
|
||||||
# https://pm.bsc.es/gitlab/garlic/apps/nbody/-/issues/1
|
|
||||||
# is properly fixed.
|
|
||||||
+
|
|
||||||
(if (mpi.pname or "unknown") == "openmpi" then
|
|
||||||
''sed -i 's/-lstdc++/-lstdc++ -lmpi_cxx/g' Makefile
|
|
||||||
''
|
|
||||||
else
|
|
||||||
""
|
|
||||||
);
|
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"CC=${cc.cc.CC}"
|
"CC=${cc.cc.CC}"
|
||||||
|
Loading…
Reference in New Issue
Block a user