Subject: Re: static vs. dynamic runtime linking, and silly 'ld -L' breakage
To: Ian Lance Taylor <ian@airs.com>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 01/29/2005 16:35:52
[ On , January 28, 2005 at 10:15:04 (-0500), Ian Lance Taylor wrote: ]
> Subject: Re: static vs. dynamic runtime linking, and silly 'ld -L' breakage
>
> I gave a reason earlier in this thread.  Defaulting -R to -L can be a
> serious problem in an environment which uses NFS heavily.  This was a
> real problem for me on SunOS4 (which did not have -R at all).

Well, SunOS-4 did have /etc/ld.so.conf, and if you were not an
administrator you could also use LD_LIBRARY_PATH.....

However just because you had problems with DT_RPATH (or rather it's
a.out equivalent) being forced to be built from the '-L' options on
SunOS-4 (which did not have '-R') doesn't mean that defaulting DT_RPATH
from '-L' options when no '-R' options are given will cause the same
problems on NetBSD.

In fact defaulting DT_RPATH from '-L' options when no '-R' options are
given can only benefit NetBSD users since they will still have the
ability to use '-R' should they run into any problems like those you
encountered on SunOS-4.

I.e. the "shared-libraries-on-NFS-automounts-causes-problems" argument
is pure F.U.D. when applied to NetBSD.

-- 
						Greg A. Woods

H:+1 416 218-0098  W:+1 416 489-5852 x122  VE3TCP  RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>