diff options
author | Alexander Bluhm <[email protected]> | 2018-04-12 00:20:17 +0200 |
---|---|---|
committer | Alexander Bluhm <[email protected]> | 2018-04-12 02:08:16 +0200 |
commit | ea9ad889a3c0f585c4f96b20c93961851d782c2e (patch) | |
tree | d2a92ba4aaa7350f81575a1b1e10dd0b3411e0d6 /src | |
parent | 87c697920206ac7ab0f757d3ec0c5550defd2517 (diff) |
Do not create shared library symlinks on OpenBSD.
Symlinks to shared libraries confuse the OpenBSD dynamic linker.
We need one file with two numbers. The problem became apparent
when the abi_rev and the OpenBSD ports shared libs numbers diverged.
Add a new conditional variable symlink_shared_lib to suppress the
symlink in the makefile.
Diffstat (limited to 'src')
-rw-r--r-- | src/build-data/makefile.in | 2 | ||||
-rw-r--r-- | src/build-data/os/openbsd.txt | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/build-data/makefile.in b/src/build-data/makefile.in index 2039ade4e..d3e69642d 100644 --- a/src/build-data/makefile.in +++ b/src/build-data/makefile.in @@ -98,6 +98,8 @@ fuzzer_corpus_zip: fuzzer_corpus %{out_dir}/%{shared_lib_name}: $(LIBOBJS) %{lib_link_cmd} $(LDFLAGS) $(LIBOBJS) $(LIB_LINKS_TO) %{output_to_exe}$@ +%{endif} +%{if symlink_shared_lib} cd %{out_dir} && ln -fs %{shared_lib_name} %{soname_base} cd %{out_dir} && ln -fs %{shared_lib_name} %{soname_patch} diff --git a/src/build-data/os/openbsd.txt b/src/build-data/os/openbsd.txt index 5ba148e66..ad35da15b 100644 --- a/src/build-data/os/openbsd.txt +++ b/src/build-data/os/openbsd.txt @@ -1,6 +1,6 @@ soname_pattern_base "lib{libname}.so" -soname_pattern_abi "lib{libname}.so.{abi_rev}" +soname_pattern_abi "lib{libname}.so.{abi_rev}.{version_minor}" soname_pattern_patch "lib{libname}.so.{abi_rev}.{version_minor}" <target_features> |