Patches for NetBSD port and automatic .hc bootstrap (long)

Glynn Clements
Tue, 1 Apr 2003 01:04:05 +0100

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 <>