From xemacs-m  Wed Dec  4 11:12:41 1996
Received: from VNET.IBM.COM (vnet.ibm.com [199.171.26.4]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with SMTP id LAA27473 for <xemacs-beta@xemacs.org>; Wed, 4 Dec 1996 11:12:38 -0600 (CST)
Received: from FISHKILL by VNET.IBM.COM (IBM VM SMTP V2R3) with BSMTP id 4438;
   Wed, 04 Dec 96 12:12:39 EST
Received: by FISHKILL (XAGENTA 4.0) id 1412; Wed, 4 Dec 1996 12:10:49 -0500 
Received: by cold.fishkill.ibm.com (AIX 3.2/UCB 5.64/4.03)
          id AA37226; Wed, 4 Dec 1996 12:10:38 -0500
Date: Wed, 4 Dec 1996 12:10:38 -0500
Message-Id: <9612041710.AA37226@cold.fishkill.ibm.com>
From: "Charles Hines" <chuck_hines@VNET.IBM.COM>
To: wmperry@aventail.com
Cc: xemacs-beta@xemacs.org
Subject: Re: AIX question...
In-Reply-To: <199611151747.JAA08871@newman>
References: <199611151747.JAA08871@newman>
X-Face: 'pn"gAx+&w4-=-}\z>*.Y*@(lC;t1<P);@iwiv';)vn3H2\/.x#;>J[a,/Q.Yv0^Wwc6_"H]}}-"?%)ETS`1v[]P`w4,E.9Bgf*XI4<H{C}Mf@'Ms)z?Bqzf"8v/oY\9K){w}\pw
Mime-Version: 1.0 (generated by tm-edit 7.90)
Content-Type: text/plain; charset=US-ASCII

>>>>> "WP" == William Perry <wmperry@aventail.com> writes:

WP> Quick question for anyone out there using AIX 3.x or 4.x - not really
WP> XEmacs related, but I thought I'd give it a try. :)

WP> Does anyone know if the program loader under AIX supports something similar
WP> to LD_PRELOAD or _RLD_LIST to specify a library that should be used
WP> _before_ all others to satisfy unresolved symbols?  Mucho thanks.

If you just specify that lib before the other shared libs at link time
you should be fine.  I don't believe there is an equivalent of
LD_PRELOAD, but that is all that LD_PRELOAD seems to do, just at link
time, not at runtime.  If you need to have it override at runtime, you
can specify LIBPATH (defaults to /lib:/usr/lib) to specify a set of
directories:

      setenv LIBPATH /dir/path/to/override/lib/dir:/lib:/usr/lib

just make sure that ONLY the libs you want overridden are in that
first dir.

Or, if you link with the -L parameter, AIX sticks that dir in this
builtin LIBPATH in the exec (which is only useful if all users are
going to have it in the exact same dir).  Use 'dump -Hv' on the exec
to see what this internal LIBPATH value is set to.

Chuck

*******************************************************************************
Charles K. Hines <chuck_hines@vnet.ibm.com>
IBM Logic Synthesis Developer [BooleDozer (TM)]
Martial Arts Instructor [Modern Arnis, Presas Style Filipino Martial Arts]

         "Go back to sleep, Chuck.  You're just havin' a nightmare
             -- of course, we ARE still in Hell." (Gary Larson)
*******************************************************************************

