Changeset 5344:1fc66ca81759 in roaraudio
- Timestamp:
- 12/10/11 00:08:10 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/roardl.h
r5338 r5344 42 42 #define ROAR_DL_FLAG_NONE 0x0000 43 43 #define ROAR_DL_FLAG_STATIC 0x0001 /* plugins are linked statically -lfoo */ 44 #define ROAR_DL_FLAG_LAZY 0x0002 44 45 45 46 #define ROAR_DL_HANDLE_DEFAULT ((struct roar_dl_lhandle*)(void*)0) -
libroar/roardl.c
r5335 r5344 196 196 #if defined(ROAR_HAVE_LIBDL) 197 197 #ifdef RTLD_DEEPBIND 198 int libdl_flags = RTLD_ NOW|RTLD_DEEPBIND;198 int libdl_flags = RTLD_DEEPBIND; 199 199 #else 200 int libdl_flags = RTLD_NOW;200 int libdl_flags = 0; 201 201 #endif 202 202 #endif … … 205 205 if ( flags == ROAR_DL_FLAG_DEFAULTS ) 206 206 flags = ROAR_DL_FLAG_NONE; 207 208 #if defined(ROAR_HAVE_LIBDL) 209 if ( flags & ROAR_DL_FLAG_LAZY ) { 210 libdl_flags |= RTLD_LAZY; 211 } else { 212 libdl_flags |= RTLD_NOW; 213 } 214 #endif 207 215 208 216 if ( (ret = roar_mm_malloc(sizeof(struct roar_dl_lhandle))) == NULL ) -
roarclients/roarpluginrunner.c
r5341 r5344 91 91 92 92 static int do_explain(const char * name) { 93 struct roar_dl_lhandle * lhandle = roar_dl_open(name, ROAR_DL_FLAG_ DEFAULTS, 0, NULL);93 struct roar_dl_lhandle * lhandle = roar_dl_open(name, ROAR_DL_FLAG_LAZY, 0, NULL); 94 94 struct roar_dl_libraryinst * (*func)(struct roar_dl_librarypara * para); 95 95 struct roar_dl_libraryinst * lib;
Note: See TracChangeset
for help on using the changeset viewer.