Workaround implicit dependencies search failure of mips linker

Even with --sysroot parameter mips linker can not resolve implicit
dependencies from system libraries and fails with warning:

   warning: lib*.so, needed by lib*.so, not found (try using -rpath or -rpath-link)

So the toolchain will duplicate sysroot path under -rpath-link or
avoid --no-undefined