Subject: Re: static vs. dynamic runtime linking, again
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Arto Huusko <arto.huusko@utu.fi>
List: tech-userlevel
Date: 01/25/2005 19:39:31
der Mouse wrote:
>>>>The conclusion is that their authors should just forget
>>>>LD_LIBRARY_PATH + /etc/ld.so.conf and repair their build frameworks.
>>>
>>>And just what do you think I should do to "repair" my build
>>>"framework" - which you, NetBSD, not I, broke?!
>>
>>Learn the system/read the manuals/learn the compiler options?
>>They have changed somewhat since 1980....
> 
> 
> This is singularly unhelpful advice.  As for "changed somewhat since
> 1980", I pretended to be a new user, someone used to using X elsewhere.
> I went and read over the cc manpage (on the 2.0 system) as if I had
> just tried to link with no special options, got the errors, found the
> libraries, and was just wondering how to get the compiler to do what it
> should have been doing automatically (search /usr/X11R6/lib too).
> 
> I found -L.  I found no hint that anything more was needed.  Based on
> list mail, I searched the manpage for "-R" and for "rpath"; neither
> produced any hits.
> 
> Now, as a naïve new user, *what am I supposed to do*!?

man 1 ld
man 1 ld.elf_so

After all, it's not really cc that does the linking. And also, ld
is xrefed from cc.

And those two manual pages show that

"Learn the system/read the manuals/learn the compiler options?"

is not "singularly unhelpful advice". Quite the contrary.