Salome HOME
fix a bug with 'test -n' option
[tools/install.git] / config_files / hdf5-1.4.4.sh
index 4c9fea7e977410438a0c0d5e93c32cba36fdca44..2cd2e53ce1d9e6d1ccee0be57ffbb556ee7f97e3 100755 (executable)
@@ -145,6 +145,12 @@ source ${INSTALL_WORK}/$SHRC
 
 check_jb tar xfz ${SOURCE_DIR}/hdf5-1.4.4.tar.gz -C ${INSTALL_ROOT}
 
+### modify libhdf5.la file to correct direct path to hdf5 library
+### no need to do this for sources installation because 'make install' does it!
+cd ${PRODUCT_DIR}/lib
+sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libhdf5.la > libhdf5.la.new
+mv -f libhdf5.la.new libhdf5.la
+
 print_env
 }