From xemacs-m  Wed Dec  4 11:13:06 1996
Received: from black-ice.cc.vt.edu (root@black-ice.cc.vt.edu [128.173.14.71]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with ESMTP id LAA27493 for <xemacs-beta@xemacs.org>; Wed, 4 Dec 1996 11:13:06 -0600 (CST)
Received: from black-ice.cc.vt.edu (valdis@LOCALHOST [127.0.0.1]) by black-ice.cc.vt.edu (8.8.3/8.8.3) with ESMTP id MAA43326; Wed, 4 Dec 1996 12:13:01 -0500
Message-Id: <199612041713.MAA43326@black-ice.cc.vt.edu>
X-Mailer: exmh version 1.6.9 8/22/96
To: wmperry@aventail.com
Cc: xemacs-beta@xemacs.org
Subject: Re: AIX question... 
In-Reply-To: Your message of "Fri, 15 Nov 1996 09:47:20 PST."
             <199611151747.JAA08871@newman> 
From: Valdis.Kletnieks@vt.edu
X-Url: http://black-ice.cc.vt.edu/~valdis/
References: <199611151747.JAA08871@newman>
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="==_Exmh_1713508092P";
	micalg=pgp-md5; protocol="application/pgp-signature"
Content-Transfer-Encoding: 7bit
Date: Wed, 04 Dec 1996 12:12:59 -0500

--==_Exmh_1713508092P
Content-Type: text/plain; charset=us-ascii

On Fri, 15 Nov 1996 09:47:20 PST, you said:
> Quick question for anyone out there using AIX 3.x or 4.x - not really
> XEmacs related, but I thought I'd give it a try. :)
> 
> Does anyone know if the program loader under AIX supports something similar
> to LD_PRELOAD or _RLD_LIST to specify a library that should be used
> _before_ all others to satisfy unresolved symbols?  Mucho thanks.

Try setting LIB_PATH=/home/you/libdir:/usr/lib:/lib or whatever makes
sense.  To find the "best" value, try doing a 'dump -H' of the binary,
you'll see something like:

                        ***Import File Strings***
INDEX  PATH                          BASE                MEMBER
0      /usr/lpp/xlC/lib:/usr/lib:/lib
1                                    libc.a              shr.o
2                                    libC.a              shr.o          

at the end.  Take element 0, and prepend your override directory to it.

Note that this assumes that your symbol is in a shared library, and that
your replacement is in a shared library as well.  If not, you'll probably
need to use some permutation of the -L and -l flags at link time....
-- 
				Valdis Kletnieks
				Computer Systems Engineer
				Virginia Tech



--==_Exmh_1713508092P
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: 2.6.2

iQCVAwUBMqWxGNQBOOoptg9JAQGoAQP+JWtPD/kLFdkQ3n4LvG6C+ZWRdg16OqK0
WXgKzBFQe1xnks69wlUGqykJ+CroliwKtJavrAHjTo9XzyuljFnI7XYyCkkUjX6s
8VzLk/UfRODv/OOeIZK2IcsnqBIA+uiRdSuwL8z4PG1enefCDy8V6jbI05iNQ1uC
URwFGdC7J+8=
=ZijG
-----END PGP MESSAGE-----

--==_Exmh_1713508092P--

