From 76a8a4a1db6863de055f8f2e4ae4c00485e3edfa Mon Sep 17 00:00:00 2001 From: lib Date: Mon, 3 Jul 2023 14:04:50 -0500 Subject: [PATCH] Compile with static libraries with -fPIC for static linkage with Python .so --- SETUP | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SETUP b/SETUP index cccd235..a7bbfff 100755 --- a/SETUP +++ b/SETUP @@ -9,7 +9,7 @@ fi # $2 zlib, $3 hdf5 cd $(dirname $0) libname=$(basename $(pwd)) -CPPFLAGS="-I$3/include -I$2/include" LDFLAGS="-L$3/lib -L$2/lib" ./configure --prefix="$1" --disable-libxml2 --disable-dap --disable-byterange +CPPFLAGS="-fPIC -I$3/include -I$2/include" LDFLAGS="-L$3/lib -L$2/lib" ./configure --prefix="$1" --disable-libxml2 --disable-dap --disable-byterange make all -j8 # make check make install