Subject: Using -L for shared-lib search path
To: None <email@example.com, tech-userlevel@NetBSD.ORG>
From: Arne H. Juul <firstname.lastname@example.org>
Date: 06/24/1995 04:08:19
I noticed some strangeness in some programs I'd compiled
that I then traced to this change:
> Log Message:
> Implement compiled-in library search paths: any `-L' argument encountered
> while `dynamic link-mode' is on, is recorded in the executable. The
> run-time linker will search these paths after $LD_LIBRARY_PATH but
> before the default set and those currently in the hints file.
> The feature is disabled whenever for set[ug]id programs.
I think this is a really bad idea. There's a reason (several, in fact)
why nobody else uses this approach anymore. I would much rather that
we use a separate option (-R or -rpath) to do this. Then the 'disabled
for set[ug]id programs' restriction could also go away.
- Arne H. J.