check_job ${PRODUCT_DIR}/MAKE.LOG make
check_job ${PRODUCT_DIR}/INSTALL.LOG make install
+cd ${PRODUCT_DIR}/lib
+
+sed -e "s%\(.*\)\([[:space:]].*-L.*/med-[0-9]\.[0-9]\.[0-9]_SRC/src[[:space:]]\)\(.*\)%\1 \3%g" libmedimport.la > libmedimport.la.new
+mv -f libmedimport.la.new libmedimport.la
+sed -e "s%\(.*\)\([[:space:]].*-L.*/med-[0-9]\.[0-9]\.[0-9]_SRC/src[[:space:]]\)\(.*\)%\1 \3%g" libmedimportcxx.la > libmedimportcxx.la.new
+mv -f libmedimportcxx.la.new libmedimportcxx.la
+
cd ${PRODUCT_DIR};
# remove sources and temporary files after building
sed -e "s%\(.*\)\([[:space:]].*/med-[0-9]\.[0-9]\.[0-9]/lib/libmed.la[[:space:]]\)\(.*\)%\1 ${PRODUCT_DIR}/lib/libmed.la \3%g" libmedimportcxx.la > libmedimportcxx.la.new
mv -f libmedimportcxx.la.new libmedimportcxx.la
+sed -e "s%\(.*\)\([[:space:]].*-L.*/med-[0-9]\.[0-9]\.[0-9]_SRC/src[[:space:]]\)\(.*\)%\1 \3%g" libmedimport.la > libmedimport.la.new
+mv -f libmedimport.la.new libmedimport.la
+sed -e "s%\(.*\)\([[:space:]].*-L.*/med-[0-9]\.[0-9]\.[0-9]_SRC/src[[:space:]]\)\(.*\)%\1 \3%g" libmedimportcxx.la > libmedimportcxx.la.new
+mv -f libmedimportcxx.la.new libmedimportcxx.la
+
chmod 755 libmed.la
chmod 755 libmedC.la
chmod 755 libmedimport.la