Skip to content

Commit

Permalink
Merge GH randombit#912 Fix OpenBSD shared lib name
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Mar 14, 2017
2 parents 75d6edb + 6eb7588 commit 52072c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/build-data/os/openbsd.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 8 additions & 8 deletions src/scripts/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ class PercentSignTemplate(string.Template):
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))

Expand Down

0 comments on commit 52072c0

Please sign in to comment.