From: inv Date: Mon, 28 May 2012 14:21:23 +0000 (+0000) Subject: SALOME 6.5.0 preparation: additional fix for *.la files correction procedure of libxml2 X-Git-Tag: V6_5_0rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=62b6baa6371574d760abfec43a963a6a0045a21c;p=tools%2Finstall.git SALOME 6.5.0 preparation: additional fix for *.la files correction procedure of libxml2 --- diff --git a/config_files/libxml2.sh b/config_files/libxml2.sh index 5214c67..a627469 100755 --- a/config_files/libxml2.sh +++ b/config_files/libxml2.sh @@ -110,11 +110,8 @@ check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} # modify *.la files cd ${PRODUCT_DIR}/lib -for l in X `find -type f -name *.la`; do - if [ "${l}" != "X" ] ; then - sed -i "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g;" ${l} - fi -done +test -f libxml2.la && sed -i "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g;" libxml2.la +test -f python${PYTHON_VERSION}/site-packages/libxml2mod.la && sed -i "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages'%g;s%[^[:space:]]*/libxml2.la%${PRODUCT_DIR}/lib/libxml2.la%g" python${PYTHON_VERSION}/site-packages/libxml2mod.la # modify pkgconfig cd ${PRODUCT_DIR}/lib/pkgconfig