mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:00:30 +00:00
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:
parent
f1ab3c8d76
commit
d209d9feb6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue