-rdynamic in gtk-config



  Why does gtk-config (or actually glib-config) adds the -rdynamic
option to the linker options ? My program uses a lot of calls to
dlopen() to load plugins at run time and somehow when it's compiled with
the -rdynamic option the plugins are able to use some of the main
program's functions and variables.

  The weird thing is that there are no unresolved symbols in the plugins
(except for main()) to cause them to use the wrong symbols.

Leonardo




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]