From xemacs-m  Wed May 28 16:43:15 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 QAA19920
	for <xemacs-beta@xemacs.org>; Wed, 28 May 1997 16:42:54 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id XAA24993; Wed, 28 May 1997 23:42:09 +0200 (MET DST)
To: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: `-R' on Solaris
References: <199705281251.HAA26173@xemacs.org> 	<kigenarheeh.fsf@jagor.srce.hr> <199705281446.QAA07001@sen2.ida.liu.se> <kigwwojfx1s.fsf@jagor.srce.hr> <m24tbne5aj.fsf@dunham.tcimet.net>
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-Flame: You make me sick.
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 28 May 1997 23:42:08 +0200
In-Reply-To: Steve Dunham's message of 28 May 1997 15:59:48 -0400
Message-ID: <kigvi43e0jz.fsf@jagor.srce.hr>
Lines: 26
X-Mailer: Gnus v5.4.52/XEmacs 20.2

Steve Dunham <dunham@cps.msu.edu> writes:

> > People often work around the bug so that they put /usr/local/lib to
> > `LD_LIBRARY_PATH'.  That solution is bad, and doesn't work for all
> > programs.
> 
> All you have to do to fix your gcc is:
> 
> Find the "specs" file, in your case it's something like:
> 
>     /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/specs
> At the beginning of the line _after_ the line that says "*link:" add
> "-R/usr/local/lib " (without the quotes).

Are you sure this is the right solution?  This file doesn't mention
-L/usr/local/lib anywhere.  Besides, it will add -R /usr/local/lib to
RUN_PATH always, and that's not what I want.

And finally: we *cannot* expect the end user to make changes to his
gcc.  We should fix XEmacs linking by adding the required `-R' switch.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it."                                    -- Donald Knuth

