From xemacs-m  Wed May 28 09:00:59 1997
Received: from CNRI.Reston.VA.US (CNRI.Reston.VA.US [132.151.1.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id JAA01581
	for <xemacs-beta@xemacs.org>; Wed, 28 May 1997 09:00:58 -0500 (CDT)
Received: from newcnri.cnri.reston.va.us by CNRI.Reston.VA.US id aa06742;
          28 May 97 10:02 EDT
Received: from anthem.CNRI.Reston.Va.US by newcnri.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id KAA01265; Wed, 28 May 1997 10:01:59 -0400
Received: by anthem.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id KAA00826; Wed, 28 May 1997 10:01:27 -0400
Date: Wed, 28 May 1997 10:01:27 -0400
Message-Id: <199705281401.KAA00826@anthem.CNRI.Reston.Va.US>
From: "Barry A. Warsaw" <bwarsaw@CNRI.Reston.VA.US>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Hrvoje Niksic <hniksic@srce.hr>
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: `-R' on Solaris
References: <kigu3jom7k5.fsf@jagor.srce.hr>
X-Mailer: VM 6.30 under 19.15p4 XEmacs Lucid
Reply-To: bwarsaw@python.org
X-Attribution: BAW
X-Oblique-Strategy: Burn bridges
X-Url: http://www.python.org/~bwarsaw


>>>>> "Hrv" == Hrvoje Niksic <hniksic@srce.hr> writes:

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

It's been my experience that you always need the -R option for
Solaris, especially for x86.  About the only difference that I've seen
building stuff b/w Sparc and x86 is in the semantics of the linker
options.  At least with 2.5 (and we just upgraded our Sparc boxes to
2.5.1, but not our x86 boxes so things may have changed), that on
Sparc, -L implied -R, but on x86 this isn't the case.  I always now
build with -R on both platforms and that seems to take care of all the
dynlib problems I had been having.

Some of the Solaris gurus on this list might have a better explanation
of what's going on.  I'm just relating observations from the
trenches. :-)

-Barry

