Module: wine Branch: master Commit: 19f59ce83923a6338f479ef1d6516d3a3e8d97c4 URL: https://gitlab.winehq.org/wine/wine/-/commit/19f59ce83923a6338f479ef1d6516d3... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Dec 12 17:08:45 2022 +0100 winegcc: Add -ldl when linking .so files. This is needed for dladdr1/dlinfo to run the constructors. --- tools/winegcc/winegcc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index a850cce765f..142ab81de12 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -1372,6 +1372,7 @@ static void build(struct options* opts) if (!opts->nostdlib && !is_pe) { + strarray_add(&link_args, "-ldl"); strarray_add(&link_args, "-lm"); strarray_add(&link_args, "-lc"); }