Quoting Adriaan de Groot <groot at kde.org>: > On Wednesday 18 March 2009, Paul Floyd wrote:
... > > I.e., ensure that all 0f the -L items come before -l ones. > > Hm. This also changes the order (or is it that the -L flags get reversed in > order?) of the libraries -- are there cases where that would be bad? How > smart is the linker, after all? It'd be easy to not reverse the order by using 2 variables for the -L flags and the -l (& -pthread) flags rather than prepending/appending respectively. I don't think that the linker is at all smart in this respect. It searches for a -llib at that point with the existing -L path. Later -L paths are not used. A+ Paul
