]> git.tdb.fi Git - builder.git/commitdiff
Reinstate the use of sonames for shared libraries
authorMikko Rasa <tdb@tdb.fi>
Wed, 7 Feb 2024 19:50:01 +0000 (21:50 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 7 Feb 2024 19:50:01 +0000 (21:50 +0200)
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

index 7be3a89370a121f511b756a253e608128d7053e7..1488e69ae90a511f7cbbacea229f8d5b9d03acf6 100644 (file)
@@ -34,6 +34,8 @@ SharedLibrary::SharedLibrary(Builder &b, const Component &c, const vector<Object
        const BinaryComponent &bcomp = dynamic_cast<const BinaryComponent &>(*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);