From xemacs-m  Wed May 28 14:59:55 1997
Received: from dunham.tcimet.net (qmailr@dunham.tcimet.net [198.109.161.223])
	by xemacs.org (8.8.5/8.8.5) with SMTP id OAA18380
	for <xemacs-beta@xemacs.org>; Wed, 28 May 1997 14:59:53 -0500 (CDT)
Received: (qmail 17025 invoked by uid 501); 28 May 1997 19:59:49 -0000
To: Hrvoje Niksic <hniksic@srce.hr>
Cc: 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>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Steve Dunham <dunham@cps.msu.edu>
Date: 28 May 1997 15:59:48 -0400
In-Reply-To: Hrvoje Niksic's message of 28 May 1997 17:14:55 +0200
Message-ID: <m24tbne5aj.fsf@dunham.tcimet.net>
Lines: 32
X-Mailer: Gnus v5.4.53/XEmacs 20.3(beta2)

Hrvoje Niksic <hniksic@srce.hr> writes:

> David Byers <davby@ida.liu.se> writes:
> 
> > From what I've read it sounds like you have a problem with gcc, not
> > XEmacs. If you gcc searches /usr/local/lib by default, then it should
> > probably do the equivalent of -R/usr/local/lib by default too, and you
> > may need to fix your gcc.

> My gcc installation is quite normal, and I've seen the problem on some 
> other Solaris systems.

I've seen this problem with /usr/openwin/lib, but imake takes care of
stuff like that automatically.

> 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).



Steve
dunham@cps.msu.edu

