aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Bluhm <[email protected]>2017-03-13 16:23:58 +0100
committerAlexander Bluhm <[email protected]>2017-03-13 17:43:12 +0100
commit6eb7588d45b7b793b11f67788a2c27eeb0d7796e (patch)
treebf6eda767d4dd9edd7f9b903927a44b3cc102fb1 /src
parent9961e475f10a671a8e25080958d26c8c356057ef (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')
-rw-r--r--src/build-data/os/openbsd.txt4
-rwxr-xr-xsrc/scripts/install.py16
2 files changed, 11 insertions, 9 deletions
diff --git a/src/build-data/os/openbsd.txt b/src/build-data/os/openbsd.txt
index 0e60abd2e..89d291ddc 100644
--- a/src/build-data/os/openbsd.txt
+++ b/src/build-data/os/openbsd.txt
@@ -1,6 +1,8 @@
os_type unix
-soname_suffix "so"
+soname_pattern_base "libbotan-{version_major}.so"
+soname_pattern_abi "libbotan-{version_major}.so.{abi_rev}"
+soname_pattern_patch "libbotan-{version_major}.so.{abi_rev}.{version_minor}"
<target_features>
clock_gettime
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))