From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA18789; Wed, 24 Apr 2002 14:14:29 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA18776 for ; Wed, 24 Apr 2002 14:14:28 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3OCDIH12711; Wed, 24 Apr 2002 14:13:18 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA18173; Wed, 24 Apr 2002 14:13:18 +0200 (MET DST) Date: Wed, 24 Apr 2002 14:13:18 +0200 From: Xavier Leroy To: John Max Skaller Cc: Jacques Garrigue , rnyberg@it.su.se, caml-list@inria.fr Subject: Re: [Caml-list] shared libraries [pcre-ocaml] Message-ID: <20020424141318.B17777@pauillac.inria.fr> References: <20020422103046.B21430@gromit.it.su.se> <3CC472A7.5070901@ozemail.com.au> <20020423094308M.garrigue@kurims.kyoto-u.ac.jp> <3CC5FA3E.9020706@ozemail.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3CC5FA3E.9020706@ozemail.com.au>; from skaller@ozemail.com.au on Wed, Apr 24, 2002 at 10:20:14AM +1000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Yeah. The correct answer is to fix the stupid dynamic > loader hackery used in unix systems. Obviously, > there should be a way to load a library from > the directory in which the caller is installed: Agreed. The Win32 dynamic loader gets this right. Another workaround would be to have an API to manipulate the search path of the dynamic loader at run-time, but setenv("LD_LIBRARY_PATH", ...) doesn't work because usually the value of LD_LIBRARY_PATH is cached at program start-up time. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners