Skip to content

Conversation

@winterheart
Copy link

In order to achieve more portability int2ssl needs to compiled with -static option in MinGW environment, so all required toolchain libraries gets compiled into binary. Partially fixes #6.

Now project supports cross-compiling for Windows binaries in Linux host. To do so, pass -DCMAKE_TOOLCHAIN_FILE=/path/to/Toolchain-MinGW64.cmake on cmake configuration phase.

Also reorganized CMakeLists.txt file for more modern CMake project best practies usage:

  • -Os (optimized for size) is part of Cmake's MinSizeRel build type, so this option should'nt defined manually. Instead use -DCMAKE_BUILD_TYPE=MinSizeRel.
  • -s (strip binary option) is not true crossplatform option, so moved it into option STRIP_EXE enabled by default.
  • Minimal CMake version requirement updated to 3.13 to avoid deprecation warnings on modern cmake.

Additionally implemented GitHub Actions flows.

GCC analyzer wrongly assumes that `if(cp == NULL || c == ':')` not
guarding against `cp++`.
In order to achieve more portability int2ssl needs to compiled with
`-static` option in MinGW environment, so all required toolchain
libraries gets compiled into binary. Partially fixes falltergeist#6.

Now project supports cross-compiling for Windows binaries in Linux host.
To do so, pass `-DCMAKE_TOOLCHAIN_FILE=/path/to/Toolchain-MinGW64.cmake`
on cmake configuration phase.

Also reorganized CMakeLists.txt file for more modern CMake project best
practies usage:
* -Os (optimized for size) is part of Cmake's MinSizeRel build type, so
  this option should'nt defined manually. Instead use
  `-DCMAKE_BUILD_TYPE=MinSizeRel`.
* -s (strip binary option) is not true crossplatform option, so moved it
  into option STRIP_EXE enabled by default.
* Minimal CMake version requirement updated to 3.13 to avoid deprecation
  warnings on modern cmake.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

exe fails in windows 10

1 participant