Branch: Tag:

2000-09-27

2000-09-27 01:21:21 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

don't use RTLD_LAZY

Rev: src/dynamic_load.c:1.44

8:   # include "pike_macros.h"   # include "main.h"    - RCSID("$Id: dynamic_load.c,v 1.43 2000/08/17 18:51:09 grubba Exp $"); + RCSID("$Id: dynamic_load.c,v 1.44 2000/09/27 01:21:21 hubbe Exp $");      #endif /* !TESTING */   
264:    module_name = sp[-args].u.string->str;       /* Removing RTLD_GLOBAL breaks some PiGTK themes - Hubbe */ +  /* Using RTLD_LAZY is faster, but makes it impossible to +  * detect linking problems at runtime.. +  */    module=dlopen(module_name, -  (d_flag ? RTLD_NOW : RTLD_LAZY) |RTLD_GLOBAL ); +  RTLD_NOW |RTLD_GLOBAL );       if(!module)    {