Branch: Tag:

1999-01-31

1999-01-31 23:50:15 by Per Hedbor <ph@opera.com>

Changed default from dlopen(RTLD_NOW|RTLD_LOCAL) to dlopen(RTLD_LAZY|RTLD_GLOBAL)

Rev: src/dynamic_load.c:1.32

7:   # include "stralloc.h"   # include "pike_macros.h"    - RCSID("$Id: dynamic_load.c,v 1.31 1998/09/18 21:35:00 hubbe Exp $"); + RCSID("$Id: dynamic_load.c,v 1.32 1999/01/31 23:50:15 per Exp $");      #endif /* !TESTING */   
203:   #define RTLD_NOW 0   #endif    + #ifndef RTLD_LAZY + #define RTLD_LAZY 0 + #endif +  + #ifndef RTLD_GLOBAL + #define RTLD_GLOBAL 0 + #endif +    #ifndef TESTING      #if defined(HAVE_DLOPEN) || defined(USE_DLD) || defined(USE_HPUX_DL)
228: Inside #if undefined(TESTING) and #if defined(HAVE_DLOPEN) || defined(USE_DLD) || defined(USE_HPUX_DL)
      module_name = sp[-args].u.string->str;    -  module=dlopen(module_name, RTLD_NOW); +  module=dlopen(module_name, +  (d_flag?RTLD_NOW|RTLD_GLOBAL:RTLD_LAZY|RTLD_GLOBAL));       if(!module)    {