cd ${PRODUCT_WORK}
makedir ${PRODUCT_DIR}
# vsr: fix a bug on Mandrake-10.1: wrong qt library reference
-sed -e "s/-lqt/-lqt-mt/g" ./tmake/lib/linux-g++/tmake.conf > ./tmake/lib/linux-g++/tmake.conf.new
+sed -e "s/-lqt$/-lqt-mt/g" ./tmake/lib/linux-g++/tmake.conf > ./tmake/lib/linux-g++/tmake.conf.new
mv ./tmake/lib/linux-g++/tmake.conf.new ./tmake/lib/linux-g++/tmake.conf
# vsr: fix bug - configure fails on Red Hat 9 because of incorrect autodetect check for install tool
# so it is necessary to put it directly