From 83ee6b115630146e9615216bdfde9b73ca5179c0 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Thu, 2 Jun 2022 15:47:10 +0200
Subject: [PATCH] Install patchelf tool.

---
 ogscm/recipes/ogs.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ogscm/recipes/ogs.py b/ogscm/recipes/ogs.py
index 51b1cdd..05ac0cc 100644
--- a/ogscm/recipes/ogs.py
+++ b/ogscm/recipes/ogs.py
@@ -585,6 +585,9 @@ if local_args.mkl:
     Stage0 += packages(apt=["lib32stdc++6"], yum=["libstdc++.i686"])
     cmake_args.append("-DOGS_USE_MKL=ON")
 
+# Used to fix RPATH in petsc.so build as external dependency
+Stage0 += packages(ospackages=["patchelf"])
+
 if local_args.ccache:
     Stage0 += ccache(cache_size="15G")
 if local_args.ogs != "off" and local_args.ogs != "clean":
-- 
GitLab