
31 Mar
2003
31 Mar
'03
7:04 p.m.
Simon Marlow wrote:
Incidentally, why are the -Wl,-R<dir> options needed? I've never come across that before, usually the runtime linker just finds the libraries in the place they were originally linked from.
The runtime linker will use the first matching library it finds, which
isn't necessarily the same one that was used in the linking step. The
-R switch will cause the runtime linker to search specified directory
before the "normal" library directories (e.g. /usr/lib).
--
Glynn Clements