Hello. When linking, -L/usr/lib may sometimes be included so that it is referenced at an early stage. It is unrelated, but I wrote it as comment 13 on bug 248501 :) It's so troublesome that I think it would be better to switch to a method like the one using cmake, where the library paths themselves are passed directly to the linker :)
Regards.
