https://bugs.winehq.org/show_bug.cgi?id=37966
--- Comment #8 from Erich E. Hoover erich.e.hoover@wine-staging.com --- (In reply to Adam Bolte from comment #6)
Just a quick update. There is a work-around for this bug I stumbled across by accident when working on something unrelated. In hindsight it was somewhat obvious.
...
The following two patches should provide a real fix: [1/2] https://gist.githubusercontent.com/compholio/c26ad151f1e3b5990dfb/raw/155bc7... [2/2] https://gist.githubusercontent.com/compholio/749bbec6ff1b4d096bc1/raw/48277d...
Important notes: 1) You must run "autoreconf -f" before compiling. 2) You must have libXNVCtrl.a in a system library path (on Ubuntu this is included automatically in the nvidia-settings package) 2) You should run "./configure --with-xnvctrl" before running make. Doing this will ensure that if libXNVCtrl.a is not found or is for the wrong architecture then the ./configure command will fail with an error.