From 255fbdef23772a7a3b87f50b2a27bd2a9672022f Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Fri, 22 Apr 2022 17:16:58 +0200
Subject: [PATCH] Adding fPIC to zlib

---
 script/install_HDF5.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/install_HDF5.sh b/script/install_HDF5.sh
index 1494ba69c..dea5e9476 100755
--- a/script/install_HDF5.sh
+++ b/script/install_HDF5.sh
@@ -22,7 +22,7 @@ if [ ! -d "$1/ZLIB"  -a x"$platform" != x"cygwin" ]; then
   tar -xf zlib-1.2.12.tar.gz
   cd zlib-1.2.12
 
-  CC=mpicc ./configure --prefix=$1/ZLIB
+  CC=mpicc CFLAGS=-fPIC  ./configure --prefix=$1/ZLIB
   make -j $2
   if [ $? -eq 0 ]; then
     make check install
-- 
GitLab