From d32b43386d0c0bf8790b7f91b6d26727302c1925 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 7 Feb 2024 21:50:01 +0200 Subject: [PATCH] Reinstate the use of sonames for shared libraries The field was accidentally left empty in 1600cda. Having an soname is actually important on Linux and possibly other *nix systems. --- source/lib/sharedlibrary.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/lib/sharedlibrary.cpp b/source/lib/sharedlibrary.cpp index 7be3a89..1488e69 100644 --- a/source/lib/sharedlibrary.cpp +++ b/source/lib/sharedlibrary.cpp @@ -34,6 +34,8 @@ SharedLibrary::SharedLibrary(Builder &b, const Component &c, const vector(*component); if(bcomp.get_type()==BinaryComponent::MODULE) install_location /= package->get_name(); + else + soname = FS::basename(path); for(ObjectFile *o: objects) o->set_used_in_shared_library(true); -- 2.45.2