]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
SALOME 6.5.0 preparation: additional fix for *.la files correction procedure of libxml2 V6_5_0rc1
authorinv <inv@opencascade.com>
Mon, 28 May 2012 14:21:23 +0000 (14:21 +0000)
committerinv <inv@opencascade.com>
Mon, 28 May 2012 14:21:23 +0000 (14:21 +0000)
config_files/libxml2.sh

index 5214c67ff60f3177eaf90de893439e1c4ed78348..a6274695958db18718b925e8c43aa6b8856a9770 100755 (executable)
@@ -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