contribs: glew: Simplify/improve the win32 patch, fix building with lld
commit41b5dca1f870aa1fbc32703daf875c35aa979fd9
authorMartin Storsjö <martin@martin.st>
Thu, 21 Dec 2017 21:34:29 +0000 (21 23:34 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 22 Dec 2017 10:15:36 +0000 (22 11:15 +0100)
treed28537e5c6f8a78178ac656bcf3d4383b2bf309d
parenta943285ad52cdfd49003aa4ee93c37ebded6bdc5
contribs: glew: Simplify/improve the win32 patch, fix building with lld

The previous version of win32.patch left things in a bit more broken state
than necessary.

The previous version of the patch removed LD=gcc and removed a number of
flags, making the build trying to build a DLL (but without the option
-shared), actually producing an EXE. (The linked DLLs are later
actually removed by the contribs build system.) Instead of removing LD=gcc,
change it into LD=$(CC) which is more what glew originally intended, and
keep the flags for linking shared libraries (but remove the -soname option
which isn't supported by neither GNU ld nor lld).

This fixes building in setups where $(LD) points to lld.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
contrib/src/glew/win32.patch