Commit 90e075c3 authored by Alexandre Julliard's avatar Alexandre Julliard

If supported, add -init and -fini flags to the linker invocation.

parent 2eebf3c7
......@@ -617,7 +617,11 @@ int main(int argc, char **argv)
link_args = strarray_alloc();
strarray_add(link_args, cpp ? "g++" : "gcc");
strarray_add(link_args, "-shared");
#ifdef HAVE_LINKER_INIT_FINI
strarray_add(link_args, "-Wl,-Bsymbolic,-z,defs,-init,__wine_spec_init,-fini,__wine_spec_fini");
#else
strarray_add(link_args, "-Wl,-Bsymbolic,-z,defs");
#endif
for (i = 0; i < llib_paths->size; i++)
strarray_add(link_args, llib_paths->base[i]);
......
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