winegcc: Support -Wl,foo=... style linker options.

In particular meson uses -Wl,--out-implib=...

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:48:01 +02:00 committed by Alexandre Julliard
parent b1fb07e188
commit fcda0afdd4

View file

@ -1982,7 +1982,7 @@ int main(int argc, char **argv)
if (strncmp("-Wl,", opts.args->base[i], 4) == 0)
{
unsigned int j;
strarray* Wl = strarray_fromstring(opts.args->base[i] + 4, ",");
strarray* Wl = strarray_fromstring(opts.args->base[i] + 4, ",=");
for (j = 0; j < Wl->size; j++)
{
if (!strcmp(Wl->base[j], "--image-base") && j < Wl->size - 1)