From fe774c4b5994516ac5111c7c344631c44fb7be32 Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Thu, 24 Sep 2020 00:43:57 +0200 Subject: [PATCH] corrected mingw build issue introduced with https://bugs.libssh.org/T228 to libssh 0.9.5 --- build_3rdparty.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_3rdparty.py b/build_3rdparty.py index c217f77..93f8a73 100755 --- a/build_3rdparty.py +++ b/build_3rdparty.py @@ -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++ \ @@ -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++ \