Commit d209d9fe authored by Connor Abbott's avatar Connor Abbott Committed by Alexandre Julliard

winegcc: Pass through -pthread.

While you could get 90% of the way with "-lpthread", supporting -pthread should be more reliable and is required for build systems like meson that have special handling for the threads dependency. Since this is both a compiler (really preprocessor) and linker option, we can't just add it to is_linker_arg(). Signed-off-by: 's avatarConnor Abbott <cwabbott0@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f1ab3c8d
......@@ -1939,6 +1939,13 @@ int main(int argc, char **argv)
opts.output_name = option_arg;
raw_compiler_arg = 0;
break;
case 'p':
if (strcmp("-pthread", opts.args->base[i]) == 0)
{
raw_compiler_arg = 1;
raw_linker_arg = 1;
}
break;
case 's':
if (strcmp("-static", opts.args->base[i]) == 0)
linking = -1;
......
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