Commit 19f59ce8 authored by Alexandre Julliard's avatar Alexandre Julliard

winegcc: Add -ldl when linking .so files.

This is needed for dladdr1/dlinfo to run the constructors.
parent f69c1111
...@@ -1372,6 +1372,7 @@ static void build(struct options* opts) ...@@ -1372,6 +1372,7 @@ static void build(struct options* opts)
if (!opts->nostdlib && !is_pe) if (!opts->nostdlib && !is_pe)
{ {
strarray_add(&link_args, "-ldl");
strarray_add(&link_args, "-lm"); strarray_add(&link_args, "-lm");
strarray_add(&link_args, "-lc"); strarray_add(&link_args, "-lc");
} }
......
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