From b05131671532717bafa3bac064c3c2e4d12b63d5 Mon Sep 17 00:00:00 2001 From: Apex Liu Date: Tue, 7 Jul 2020 09:57:22 +0800 Subject: [PATCH] fix build script when libssh downgrade to 0.8.9 --- build/builder/build-external.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/builder/build-external.py b/build/builder/build-external.py index 9ce8a5b..a7d7e95 100644 --- a/build/builder/build-external.py +++ b/build/builder/build-external.py @@ -510,7 +510,7 @@ class BuilderLinux(BuilderBase): os.system('unzip "{}/{}" -d "{}"'.format(PATH_DOWNLOAD, file_name, self.PATH_TMP)) cc.n('build libssh...', end='') - out_file = os.path.join(self.PATH_RELEASE, 'lib64', 'libssh.a') + out_file = os.path.join(self.PATH_RELEASE, 'lib', 'libssh.a') if os.path.exists(out_file): cc.w('already exists, skip.') return @@ -535,7 +535,7 @@ class BuilderLinux(BuilderBase): ' -DWITH_GSSAPI=OFF' \ ' -DWITH_ZLIB=ON' \ ' -DWITH_PCAP=OFF' \ - ' -DBUILD_SHARED_LIBS=OFF' \ + ' -DWITH_STATIC_LIB=ON' \ ' -DUNIT_TESTING=OFF' \ ' -DWITH_EXAMPLES=OFF' \ ' -DWITH_BENCHMARKS=OFF' \ @@ -543,6 +543,7 @@ class BuilderLinux(BuilderBase): ''.format(path_release=self.PATH_RELEASE) # ' -DWITH_STATIC_LIB=ON' + # ' -DBUILD_SHARED_LIBS=OFF' old_p = os.getcwd()