From xemacs-m  Wed May 28 09:46:36 1997
Received: from portofix.ida.liu.se (portofix.ida.liu.se [130.236.177.25])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA03571
	for <xemacs-beta@xemacs.org>; Wed, 28 May 1997 09:46:33 -0500 (CDT)
Received: from sen2.ida.liu.se (sen2.ida.liu.se [130.236.176.112])
	by portofix.ida.liu.se (8.8.5/8.8.5) with SMTP id QAA15553
	for <xemacs-beta@xemacs.org>; Wed, 28 May 1997 16:46:33 +0200 (MET DST)
Received: by sen2.ida.liu.se (SMI-8.6/ida.slave-V1.0b6d6S2)
	id QAA07001; Wed, 28 May 1997 16:46:33 +0200
Date: Wed, 28 May 1997 16:46:33 +0200
Message-Id: <199705281446.QAA07001@sen2.ida.liu.se>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: David Byers <davby@ida.liu.se>
To: xemacs-beta@xemacs.org
Subject: Re: `-R' on Solaris
In-Reply-To: <kigenarheeh.fsf@jagor.srce.hr>
References: <199705281251.HAA26173@xemacs.org>
	<kigenarheeh.fsf@jagor.srce.hr>
X-Mailer: VM 6.29 under 20.2 XEmacs Lucid (beta3)
X-Face: (@~#v$c[GP"T}a;|MU<%Dpm5*6yv"NR|7k;uk8MAISFxdZ(Og$C{u(j"9X7v$qonp}SKfhT
 g|5[Pu~/3F7XQEk70gK'4z%1R%%gg7]}=>/jD`qcBeHDgo&HS,^S!&.zoTSxh<>-O6EB?SSy96&m37

> What we currently have is:
> 
> 3) configure finds `-lz', links XEmacs with it, but doesn't add
>    `-R/path/to/library', which makes not only temacs fail (which shows
>    at once), but also all the lib-src binaries (which is noticed only
>    much later, *after* installation).
> 
> This is really totally wrong.

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

If you've told configure aboud /usr/local/lib with --site-libraries
you should be adding --site-runtime-libraries too. If you've specified
additional library paths with environment variables, then maybe you
should unset them when configuring and building XEmacs.

If the configure script is adding -L/usr/local/lib to the link flags
by default, then it should stop that sort of silliness, and force you
to use --site-libraries and --site-runtime-libraries instead, since
/usr/local/lib is not standard on Solaris systems.

--
David Byers.

