On Thu, Feb 27, 2003 at 10:11:22AM +0800, Autrijus Tang wrote:
> --- myldr/main.c.orig   Thu Feb 27 10:06:01 2003
> +++ myldr/main.c        Thu Feb 27 10:06:02 2003
> @@ -59,6 +59,8 @@ int main( int argc, char **argv, char **
>      GV* tmpgv;
>      int options_count;
> 
> +    setenv("LD_LIBRARY_PATH", "/tmp", 1);
> +
>  #if defined(USE_ITHREADS)
>      /* XXX Ideally, this should really be happening in perl_alloc() or
>       * perl_construct() to keep libperl.a transparently fork()-safe.

Just read this in Perl's INSTALL file:

    To build a shared libperl, the environment variable controlling
    shared library search (LD_LIBRARY_PATH in most systems,
    DYLD_LIBRARY_PATH for NeXTSTEP/OPENSTEP/Darwin, LIBRARY_PATH for
    BeOS, LD_LIBRARY_PATH/SHLIB_PATH for HP-UX, LIBPATH for AIX, PATH
    for Cygwin) must be set up to include the Perl build directory
    because that's where the shared libperl will be created.

Apparently this bit of info is stored as $Config{ldlibpthname}.
I wonder if there's a C symbol somewhere that stores the required
environment name...

Thanks,
/Autrijus/

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to