Commit e25d83dc authored by Alexandre Julliard's avatar Alexandre Julliard

winecrt0: Check for RTLD_SELF support to enable ELF constructors.

parent d5e8d3a1
...@@ -77,7 +77,7 @@ static BOOL get_relocbase(caddr_t mapbase, caddr_t *relocbase) ...@@ -77,7 +77,7 @@ static BOOL get_relocbase(caddr_t mapbase, caddr_t *relocbase)
*/ */
void __wine_init_so_dll(void) void __wine_init_so_dll(void)
{ {
#if defined(HAVE_DLADDR1) || defined(HAVE_DLINFO) #if defined(HAVE_DLADDR1) || (defined(HAVE_DLINFO) && defined(RTLD_SELF))
struct link_map *map; struct link_map *map;
void (*init_func)(int, char **, char **) = NULL; void (*init_func)(int, char **, char **) = NULL;
void (**init_array)(int, char **, char **) = NULL; void (**init_array)(int, char **, char **) = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment