Subject: Re: static vs. dynamic runtime linking, again (was: PAM and su -K)
To: None <tech-userlevel@NetBSD.ORG>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 01/28/2005 15:54:24
> There are good reasons for NOT setting the RPATH based on -L.  Consider:
> 	cc -o foo -L ../foolib -lfoosup

"based on" != "equal to".

It might be reasonable to, for example, default -R to -L minus all
non-absolute components.  Or perhaps default -R to all -L elements that
actually got used to find a shared library, or something - "based on"
covers a lot of possibilities.

I'd still like a warning by default, though, when running the resulting
binary immediately would fail to find one or more libraries.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B