~janisozaur/openrct2/debian

Viewing all changes in revision 2055.2.1.

  • Committer: Michał Janiszewski
  • Date: 2015-12-28 00:17:28 UTC
  • mto: This revision was merged to the branch mainline in revision 2060.
  • Revision ID: git-v1:6a5fc90cd41edea74eab2823f8e0567b0449b482
Fix CMakeLists for MinGW cross-compilation

This makes sure that shared library built with MinGW toolchain is linked
statically to *all* its dependencies, including libc, libstdc++, libsdl2
and all the others. This allows producing of working `openrct2.dll` by
cross-compiling.

I hit a bug with libcrypto, a dependency of libssl, which in turn is a
dependency of curl, which creates a `DllMain` entrypoint for static lib
too, but since we don't do anything in ours, this should be safe.

I have only had chance to try it out when cross-compiling, ideally it
should be tested under Cygwin/MSYS too, but it is too bothersome to
setup for me.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: