From xemacs-m  Wed May 28 05:41:41 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id FAA22447
	for <xemacs-beta@xemacs.org>; Wed, 28 May 1997 05:41:40 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id MAA01900; Wed, 28 May 1997 12:41:17 +0200 (MET DST)
To: akaempf@bbnplanet.com
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: `-R' on Solaris
References: <kigu3jom7k5.fsf@jagor.srce.hr> <4936-Wed28May1997063609-0400-akaempf@bbnplanet.com>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
X-Uboat-Death-Message: BOMBED BY CORVETTE. DEPTH CHARGES. LEAVE BOAT. U-808.
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 28 May 1997 12:41:16 +0200
In-Reply-To: akaempf@bbnplanet.com's message of Wed, 28 May 1997 06:36:09 -0400
Message-ID: <kig7mgj3mlv.fsf@jagor.srce.hr>
Lines: 32
X-Mailer: Gnus v5.4.52/XEmacs 20.2

akaempf@bbnplanet.com writes:

> Hrvoje Niksic writes:
>  > Martin, can you please add `-R/usr/local/lib' for default linker flags 
>  > on Solaris, at least when compiling with gcc?  The problem is that gcc 
>  > uses `-L/usr/local/lib' by default (even without specifying it
>  > explicitly).  And then temacs silently fails, as well as gnuserv and
>  > other stuff.
> 
> why would you not use -R /usr/openwin/lib...

I have it.  XEmacs speicifies `-R/usr/openwin/lib' by default (as well
as /usr/dt/lib and others), which is not the case for
`-R/usr/local/lib'.

> On Solaris there really is no /usr/local and at many installations all 
> optional software gets dumped into /opt instead of /usr/local...

GNU and other third-party software is normally put to /usr/local.
Most of free software configures to /usr/local prefix by default.
Optional software provided by Sun is put to /opt.  But it's not the
issue we are discussing.

The issue here is that my gcc links with /usr/local/lib by default,
and all of my binaries fail because of libz.so (or libxpm.so, or...)
which is in /usr/local/lib.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
You'll notice that perl is not itself written in Perl.
                                                 -- The Perl FAQ

