https://bugs.winehq.org/show_bug.cgi?id=54941
--- Comment #10 from Francisco Casas fcasas@codeweavers.com --- Hello, I confirm that your patch fixes the problem and the generated symlinks are relative.
Indeed, it wasn't working for me because I didn't run "autoconf" after applying the patch (I am still not very familiarized with autotools).
Cheers!