From f933b9e64216e6daf08ae0f7137a44f784adac23 Mon Sep 17 00:00:00 2001 From: maintenance team Date: Wed, 11 Jul 2007 14:02:03 +0000 Subject: [PATCH] Modification la files updated --- config_files/graphviz-2.2.3.sh | 24 ++++++++++++++++++++++++ config_files/libxml2-2.6.27.sh | 10 ++++++++++ 2 files changed, 34 insertions(+) diff --git a/config_files/graphviz-2.2.3.sh b/config_files/graphviz-2.2.3.sh index 16d84e9..c380db7 100755 --- a/config_files/graphviz-2.2.3.sh +++ b/config_files/graphviz-2.2.3.sh @@ -115,6 +115,30 @@ for l in `ls *.la`; do chmod a+x $l done +tmp="" +if [ -n "${TCLHOME}" ]; then + tmp="-L${TCLHOME}/lib" +fi +echo $tmp +TCL_MAJOR_VERSION=`grep -e "TCL_MAJOR_VERSION" ${TCLHOME}/lib/tclConfig.sh | sed -e "s/TCL_MAJOR_VERSION=[\'|\"]\(.*\)[\'|\"]/\1/g"` +TCL_MINOR_VERSION=`grep -e "TCL_MINOR_VERSION" ${TCLHOME}/lib/tclConfig.sh | sed -e "s/TCL_MINOR_VERSION=[\'|\"]\(.*\)[\'|\"]/\1/g"` +TCL_PATCH_LEVEL=`grep -e "TCL_PATCH_LEVEL" ${TCLHOME}/lib/tclConfig.sh | sed -e "s/TCL_PATCH_LEVEL=[\'|\"]\(.*\)[\'|\"]/\1/g"` + +export TCL_VERSION=$TCL_MAJOR_VERSION.$TCL_MINOR_VERSION$TCL_PATCH_LEVEL + +lnew="_new" +cd ${PRODUCT_DIR} +for l in `find -type f -name *.la`; do +for ll in $l; do +f=`grep "tcltk" $ll` +if test "$f" != ""; then +sed -e "s%\(.*\)\([[:space:]].*-L.*/tcltk-${TCL_VERSION}/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" $l > $l$lnew +mv $l$lnew $l +chmod 755 $l +fi +done +done + print_env } diff --git a/config_files/libxml2-2.6.27.sh b/config_files/libxml2-2.6.27.sh index d01ed54..26365d2 100755 --- a/config_files/libxml2-2.6.27.sh +++ b/config_files/libxml2-2.6.27.sh @@ -66,6 +66,16 @@ source ${INSTALL_WORK}/$SHRC check_jb tar xfz ${SOURCE_DIR}/libxml2-2.6.27.tar.gz -C ${INSTALL_ROOT} +cd ${PRODUCT_DIR}/lib +export libdir=`grep -e "libdir=.*" libxml2.la | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"` +cd .. +lnew="_new" +for l in `find -type f -name *.la`; do +sed -e "s%${libdir}%${PRODUCT_DIR}/lib%g" $l > $l$lnew +mv $l$lnew $l +chmod 755 $l +done + print_env } -- 2.39.2