summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>2022-01-08 00:26:53 +0100
committerGitHub <noreply@github.com>2022-01-07 18:26:53 -0500
commit230c558a4b6cf1208cab72bbee1307ca771e8ada (patch)
treec10a14d0e0de1a2dc53d1553cf21811545a6fbaf /GNUmakefile
parent7c1f970853522226e068438602ddd79a8a972855 (diff)
downloadcryptopp-git-230c558a4b6cf1208cab72bbee1307ca771e8ada.tar.gz
GNUmakefiles: add missing shared library symlink (GH #1101)
The GNUmakefile install-lib target currently installs the following symlink: libcryptopp.so -> libcryptopp.so.8.6.0 However, it does not create the following symlink: libcryptopp.so.8 -> libcryptopp.so.8.6.0 This symlink is necessary at runtime because libcryptopp.so.8 is the SONAME of the cryptopp library, and therefore this is what the dynamic loader will search when starting a program that is linked against cryptopp. For native compilation, the 'ldconfig' invocation that immediately follows will create that symlink, so everything works. For cross-compilation however, ldconfig can't be used, and therefore LDCONFIG is passed as /bin/true, and therefore it doesn't create the symlink. So instead, create it directly inside the GNUmakefile, without relying on ldconfig. Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Co-authored-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 23273edb..3b55e420 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1412,6 +1412,7 @@ ifneq ($(wildcard libcryptopp.so$(SOLIB_VERSION_SUFFIX)),)
$(CHMOD) u=rwx,go=rx $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_VERSION_SUFFIX)
ifeq ($(HAS_SOLIB_VERSION),1)
-$(LN) libcryptopp.so$(SOLIB_VERSION_SUFFIX) $(DESTDIR)$(LIBDIR)/libcryptopp.so
+ -$(LN) libcryptopp.so$(SOLIB_VERSION_SUFFIX) $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_COMPAT_SUFFIX)
$(LDCONF) $(DESTDIR)$(LIBDIR)
endif
endif