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: Connor Abbott <cwabbott0@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Connor Abbott 2021-07-02 11:47:59 +02:00 committed by Alexandre Julliard
parent f1ab3c8d76
commit d209d9feb6
1 changed files with 7 additions and 0 deletions

View File

@ -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;