[PD] Adding RTLD_GLOBAL to s_loader.c

guenter geiger geiger at epy.co.at
Fri Apr 20 18:15:25 CEST 2001

Can we add the RTLD_GLOBAL flag in s_loader.c to dlopen ?
That way it would be possible to generate externals for Gem without
haveing to recompile it.


--- pd-0.32p1.orig/src/s_loader.c
+++ pd-0.32p1/src/s_loader.c
@@ -68,7 +68,7 @@
            /* and append _setup to form the C setup function name */
        strcat(symname, "_setup");
 #ifdef UNIX
-       dlobj = dlopen(filename,  RTLD_NOW);
+       dlobj = dlopen(filename,  RTLD_NOW | RTLD_GLOBAL);
        if (!dlobj)
            post("%s: %s", filename, dlerror());

More information about the Pd-list mailing list