The problem is when the -rpath is setted, since it's NONE/the/rest in the above output. If I specify a --prefix everything compiles fine. I try to figure how this link is constructed but without succes to realize the problem I'm having. Do you have any hint?