From 62b6baa6371574d760abfec43a963a6a0045a21c Mon Sep 17 00:00:00 2001 From: inv Date: Mon, 28 May 2012 14:21:23 +0000 Subject: [PATCH] SALOME 6.5.0 preparation: additional fix for *.la files correction procedure of libxml2 --- config_files/libxml2.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 -- 2.39.2