From 9451ab8e5e0083555aa225ee98f6547115c7d44b Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 25 Oct 2005 12:43:53 +0000 Subject: [PATCH] graphviz: fix a bug with *.la files --- config_files/graphviz-1.9.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config_files/graphviz-1.9.sh b/config_files/graphviz-1.9.sh index 993dfe3..9c5c8d4 100755 --- a/config_files/graphviz-1.9.sh +++ b/config_files/graphviz-1.9.sh @@ -79,6 +79,15 @@ make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} source ${INSTALL_WORK}/$SHRC check_jb tar xfz ${SOURCE_DIR}/graphviz-1.9.tar.gz -C ${INSTALL_ROOT} +cd ${PRODUCT_DIR}/lib/graphviz +for l in `ls *.la`; do + libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"` + sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" $l > _$l + libdir=`dirname $libdir` + sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" _$l > $l + rm -f _$l + chmod a+x $l +done print_env } -- 2.39.2