Switch to DynaLoader and use dl_load_flags On most UNIX variants, this flag makes DynaLoader pass RTLD_GLOBAL to dl_open, so extensions can resolve the needed symbols without explicitly linking against the DSO.