On Dec 6, 2005, at 16:08, jerry gay wrote:
On 12/6/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote:
2) I'm very much inclined to remove the Win32 special casing (see also
r8673)
There are already 2 possibilities to specify the runtime prefix (where
libs are searched).
a) perl Configure --prefix=foo
This sets the built in prefix for the installable executable
b) set the evironment variable PARROT_RUNTIME
If a) isn't appropriate, because Parrot is installed into some
different place, then the install program can still use method b).
as long as there's a workable, documented solution that covers all
operating systems, i'll make sure it's implemented correctly on
windows.
I've now added c) to the list of alternatives that is (from perldoc
src/library.c):
lib_paths = [
[ "runtime/parrot/include", ... ], # paths for
.include 'file'
[ "runtime/parrot/library", ... ], # paths for
load_bytecode
[ "runtime/parrot/dynext", ... ], # paths for loadlib
[ ".so", ... ] TODO # list of shared
extensions
]
If the platform defines
#define PARROT_PLATFORM_LIB_PATH_INIT_HOOK the_init_hook
if will be called as a function with this prototype:
void the_init_hook(Interp*, PMC *lib_paths);
Platform code may add, delete, or replace search path
entries as
needed. See also include/parrot/library.h for
"enum_lib_paths".
HTH
leo