# 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