contrib: x265: Patch x265 to skip the resource file
commit696cb02d7bbd491cdc8a2df29b53d48f391b59c5
authorMartin Storsjö <martin@martin.st>
Thu, 14 Dec 2017 10:08:39 +0000 (14 12:08 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 26 Feb 2018 10:21:25 +0000 (26 12:21 +0200)
treecb58aae0457f0a8a2c36bd0c36e51fbaa3f5b457
parent28a96b9b5e46e33239b19b9d067387588266c4b0
contrib: x265: Patch x265 to skip the resource file

CMake uses a static library to pass files to the linker. CMake
does request windres to produce a COFF formatted object file, but
llvm-mingw's windres wrapper currently overrides it and produces
a .res (arch independent) formatted one instead. LLD doesn't support
such files in static libraries.

Just don't bother with the resource file for now, it's irrelevant
from VLC's point of view - it's only used for the executable and
shared library, neither of which are used by VLC.

Passing -DCMAKE_RC_COMPILER=FALSE on the cmake configuration line
sounds like a different workaround, but that doesn't seem to work
though - then we suddenly start getting -fPIC flags to the compiler,
which clang errors out on.

This can be dropped once llvm-mingw doesn't need to force the
windres output into the arch independent format.
contrib/src/x265/rules.mak
contrib/src/x265/win-skip-res.patch [new file with mode: 0644]