Skip to content

Commit

Permalink
corrected mingw build issue introduced with https://bugs.libssh.org/T228
Browse files Browse the repository at this point in the history
 to libssh 0.9.5
  • Loading branch information
chcg committed Sep 23, 2020
1 parent 3c79d60 commit fe774c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build_3rdparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
'target': {
'mingw-w64': {
'result': ['include/libssh/libssh.h', 'lib/libssh.a'],
'replace': [('src/CMakeLists.txt', 'set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-D_POSIX_SOURCE")', '')],
'commands': [
'cmake -DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_C_COMPILER=%(prefix)s-gcc -DCMAKE_CXX_COMPILER=%(prefix)s-g++ \
Expand All @@ -105,6 +106,7 @@
},
'mingw-w64_x64': {
'result': ['include/libssh/libssh.h', 'lib/libssh.a'],
'replace': [('src/CMakeLists.txt', 'set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-D_POSIX_SOURCE")', '')],
'commands': [
'cmake -DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_C_COMPILER=%(prefix)s-gcc -DCMAKE_CXX_COMPILER=%(prefix)s-g++ \
Expand Down

0 comments on commit fe774c4

Please sign in to comment.