diff options
author | Alexander Bluhm <[email protected]> | 2017-03-13 16:23:58 +0100 |
---|---|---|
committer | Alexander Bluhm <[email protected]> | 2017-03-13 17:43:12 +0100 |
commit | 6eb7588d45b7b793b11f67788a2c27eeb0d7796e (patch) | |
tree | bf6eda767d4dd9edd7f9b903927a44b3cc102fb1 /src/scripts/install.py | |
parent | 9961e475f10a671a8e25080958d26c8c356057ef (diff) |
OpenBSD does not have 3 digit soname and library symlinks.
Set library name for openbsd to libbotan-2.so.0.0 and do not install
symlinks.
Diffstat (limited to 'src/scripts/install.py')
-rwxr-xr-x | src/scripts/install.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/scripts/install.py b/src/scripts/install.py index 3384534d6..0a9683ca0 100755 --- a/src/scripts/install.py +++ b/src/scripts/install.py @@ -176,14 +176,14 @@ def main(args = None): copy_executable(os.path.join(out_dir, soname_patch), os.path.join(lib_dir, soname_patch)) - prev_cwd = os.getcwd() - - try: - os.chdir(lib_dir) - force_symlink(soname_patch, soname_abi) - force_symlink(soname_patch, soname_base) - finally: - os.chdir(prev_cwd) + if target_os != "openbsd": + prev_cwd = os.getcwd() + try: + os.chdir(lib_dir) + force_symlink(soname_patch, soname_abi) + force_symlink(soname_patch, soname_base) + finally: + os.chdir(prev_cwd) copy_executable(os.path.join(out_dir, app_exe), os.path.join(bin_dir, app_exe)) |