🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3500

Re: Installation of GCC on Sun Solaris

#3500
From: Paul Floyd
Date: Fri, 28 Sep 2001 15:06
31 lines
2648 bytes
Milan Schulte <Milan.Schulte@OFFIS.de> wrote in message news:<9ov1ph$asn@news.Informatik.Uni-Oldenburg.DE>...
> Paul Floyd wrote:
> 
> > On Wed, 26 Sep 2001 00:15:40 -0400, David Michaels
> >    <michaedi@email.uc.edu> wrote:

> >>I was thinking that you set the LD_LIBRARY_PATH to find the file
> >>libstdc++, because thats where iostream is.

> > There's much debate about LD_LIBRARY_PATH. My feeling is that you're better
> > off using the -R option, or else LD_RUN_PATH. These will compile the lib
> > paths into your binary, rather than relying on LD_LIBRARY_PATH.

> This means coding the _absolute_ path in the binary. In some cases (e.g. binary
> gets shipped to another user/system, who installs it somewhere else) this is not
> desired. Evtl. libstdc++ should be linked statically in such cases.

So what is your point? If you don't use -R/LD_RUN_PATH, then an
application certainly won't run if it is dependent on libraries stored
in non-standard directories. You will still be able to use the
LD_LIBRARY_PATH to override the hard coded runtime linker paths.

If your installation routine consists of "copy the binary somewhere in
your path", then LD_LIBRARY_PATH is probably just right.

The real problem comes when you have a great big long LD_LIBRARY_PATH,
which can then easily break applications compiled with -R that would
work perfectly *without* LD_LIBRARY_PATH.

A bientot
Paul
Technical Details
Message-ID: <94f1b746.0109280706.3cd47197@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <9ophjt$pkn$1@newton3.pacific.net.sg> <3BB0B917.A7544BFB@email.uc.edu> <4766ace0.0109251512.2d885fbe@posting.google.com> <3BB1566C.33B9F702@email.uc.edu> <9ourou$bee$1@dfw-ixnews3.ix.netcom.com> <9ov1ph$asn@news.Informatik.Uni-Oldenburg.DE>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d20e26dd1fc10c49
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,d20e26dd1fc10c49
X-Google-Attributes: gidfc89c,public
X-Google-Thread: f65d0,d20e26dd1fc10c49
X-Google-Attributes: gidf65d0,public
X-Google-ArrivalTime: 2001-09-28 08:06:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: pjfloyd@my-deja.com (Paul Floyd)
Newsgroups: comp.unix.programmer,gnu.gcc,gnu.gcc.help
Subject: Re: Installation of GCC on Sun Solaris
Date: 28 Sep 2001 08:06:01 -0700
Organization: http://groups.google.com/
Lines: 31
Message-ID: <94f1b746.0109280706.3cd47197@posting.google.com>
References: <9ophjt$pkn$1@newton3.pacific.net.sg> <3BB0B917.A7544BFB@email.uc.edu> <4766ace0.0109251512.2d885fbe@posting.google.com> <3BB1566C.33B9F702@email.uc.edu> <9ourou$bee$1@dfw-ixnews3.ix.netcom.com> <9ov1ph$asn@news.Informatik.Uni-Oldenburg.DE>
NNTP-Posting-Host: 192.73.228.3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1001689561 12751 127.0.0.1 (28 Sep 2001 15:06:01 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 28 Sep 2001 15:06:01 GMT