str_to_replace="-L${gllibdir} -lGL"
fi
- sed -e "s%-lGLU%%g" \
- -e "s%-lGL%%g" \
+ sed -e "s%-lGL\b%%g" \
-e "s%[^[:space:]]*libGL.la[[:space:]]%%g" \
-e "s%^dependency_libs='\(.*\)%dependency_libs='${str_to_replace} \1%" \
libTKOpenGl.la > libTKOpenGl.la.new
has_gl_dep=`grep -E "^dependency_libs=.*-lGL.*" libqt-mt.la`
gllibdir="`where_gl_libs`"
if [ "$has_gl_dep" != "" ] && [ "$gllibdir" != "" ] ; then
- sed -e "s%-lGL%%g" \
+ sed -e "s%-lGL\b%%g" \
-e "s%^dependency_libs='\(.*\)%dependency_libs='-L$gllibdir -lGL \1%g" \
libqt-mt.la > libqt-mt.la.new
mv -f libqt-mt.la.new libqt-mt.la