No lib symlinks in openwrt

This commit is contained in:
Dmitri Bogomolov 2018-03-09 16:41:20 +02:00
parent 4b995e7996
commit 50b74c2223
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,7 @@ def check_openssl():
import os.path import os.path
paths.insert(0, os.path.join(sys._MEIPASS, 'libeay32.dll')) paths.insert(0, os.path.join(sys._MEIPASS, 'libeay32.dll'))
else: else:
paths = ['libcrypto.so'] paths = ['libcrypto.so', 'libcrypto.so.1.0.0']
if sys.platform == 'darwin': if sys.platform == 'darwin':
paths.extend([ paths.extend([
'libcrypto.dylib', 'libcrypto.dylib',

View File

@ -534,6 +534,8 @@ def loadOpenSSL():
else: else:
libdir.append('libcrypto.so') libdir.append('libcrypto.so')
libdir.append('libssl.so') libdir.append('libssl.so')
libdir.append('libcrypto.so.1.0.0')
libdir.append('libssl.so.1.0.0')
if 'linux' in sys.platform or 'darwin' in sys.platform or 'bsd' in sys.platform: if 'linux' in sys.platform or 'darwin' in sys.platform or 'bsd' in sys.platform:
libdir.append(find_library('ssl')) libdir.append(find_library('ssl'))
elif 'win32' in sys.platform or 'win64' in sys.platform: elif 'win32' in sys.platform or 'win64' in sys.platform: