mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 00:07:38 +00:00
Fix openssl ext
This commit is contained in:
parent
249de7eb45
commit
e686ec0d8c
1 changed files with 6 additions and 4 deletions
10
setup.py
10
setup.py
|
@ -153,13 +153,15 @@ def lib_ext_kwargs(pc, prefix_env_var, lib_name, lib_pkg_name, pc_version, lib_s
|
|||
return pc.parse(lib_pkg_name)
|
||||
raise Exception(f'Could not find {lib_name} lib/headers, please set {prefix_env_var}')
|
||||
|
||||
if is_win32:
|
||||
crypto_ext_lib = lib_ext_kwargs(
|
||||
pc, 'BORG_OPENSSL_PREFIX', 'libcrypto', 'libcrypto', '>=1.1.1', lib_subdir='')
|
||||
else:
|
||||
crypto_ext_lib = lib_ext_kwargs(pc, 'BORG_OPENSSL_PREFIX', 'crypto', 'libcrypto', '>=1.1.1')
|
||||
|
||||
crypto_ext_kwargs = members_appended(
|
||||
dict(sources=[crypto_ll_source, crypto_helpers]),
|
||||
if is_win32:
|
||||
lib_ext_kwargs(pc, 'BORG_OPENSSL_PREFIX', 'libcrypto', 'libcrypto', '>=0', lib_subdir=''),
|
||||
else:
|
||||
lib_ext_kwargs(pc, 'BORG_OPENSSL_PREFIX', 'crypto', 'libcrypto', '>=0'),
|
||||
crypto_ext_lib,
|
||||
dict(extra_compile_args=cflags),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue