mirror of https://github.com/borgbackup/borg.git
rename BORG_LZ4_PREFIX env var to BORG_LIBLZ4_PREFIX
consistency:
we also have BORG_LIBB2_PREFIX and BORG_LIBZSTD_PREFIX.
(cherry picked from commit 9b6924d27f
)
This commit is contained in:
parent
7d8ec62b50
commit
83603acd48
|
@ -220,8 +220,9 @@ Directories and files:
|
||||||
Building:
|
Building:
|
||||||
BORG_OPENSSL_PREFIX
|
BORG_OPENSSL_PREFIX
|
||||||
Adds given OpenSSL header file directory to the default locations (setup.py).
|
Adds given OpenSSL header file directory to the default locations (setup.py).
|
||||||
BORG_LZ4_PREFIX
|
BORG_LIBLZ4_PREFIX
|
||||||
Adds given LZ4 header file directory to the default locations (setup.py).
|
Adds given prefix directory to the default locations. If a 'include/lz4.h' is found Borg
|
||||||
|
will be linked against the system liblz4 instead of a bundled implementation. (setup.py)
|
||||||
BORG_LIBB2_PREFIX
|
BORG_LIBB2_PREFIX
|
||||||
Adds given prefix directory to the default locations. If a 'include/blake2.h' is found Borg
|
Adds given prefix directory to the default locations. If a 'include/blake2.h' is found Borg
|
||||||
will be linked against the system libb2 instead of a bundled implementation. (setup.py)
|
will be linked against the system libb2 instead of a bundled implementation. (setup.py)
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -173,8 +173,8 @@ library_dirs.append(os.path.join(ssl_prefix, 'lib'))
|
||||||
|
|
||||||
possible_liblz4_prefixes = ['/usr', '/usr/local', '/usr/local/opt/lz4', '/usr/local/lz4',
|
possible_liblz4_prefixes = ['/usr', '/usr/local', '/usr/local/opt/lz4', '/usr/local/lz4',
|
||||||
'/usr/local/borg', '/opt/local', '/opt/pkg', ]
|
'/usr/local/borg', '/opt/local', '/opt/pkg', ]
|
||||||
if os.environ.get('BORG_LZ4_PREFIX'):
|
if os.environ.get('BORG_LIBLZ4_PREFIX'):
|
||||||
possible_liblz4_prefixes.insert(0, os.environ.get('BORG_LZ4_PREFIX'))
|
possible_liblz4_prefixes.insert(0, os.environ.get('BORG_LIBLZ4_PREFIX'))
|
||||||
liblz4_prefix = setup_lz4.lz4_system_prefix(possible_liblz4_prefixes)
|
liblz4_prefix = setup_lz4.lz4_system_prefix(possible_liblz4_prefixes)
|
||||||
if prefer_system_liblz4 and liblz4_prefix:
|
if prefer_system_liblz4 and liblz4_prefix:
|
||||||
print('Detected and preferring liblz4 over bundled LZ4')
|
print('Detected and preferring liblz4 over bundled LZ4')
|
||||||
|
|
Loading…
Reference in New Issue