
John Maddock wrote:
Am I missing something? Is this only useful on Windows? I'd love for it to work in general, but I think I have to replicate the logic in my build system which means I shouldn't really use it on Windows (since my logic will already be there).
It's only useful if your compiler supports it, period.
However, those compilers that do support it typically have a number of different binary-incompatible build variants: figuring out which lib variant to link against without it in those cases is tricky, this is a frequent cause of problem reports caused by picking the wrong variant.
Actually, I could never really understand why more compilers don't support this :-(
I suppose because on Linux, it's not typical to have several variants. And if you have just one variant, using -lwhatever is not a big problem. - Volodya