I suspect that your patch will break shared libraries on some platforms by including full library paths in dependencies. I have not examined your patch to confirm this is the case.