Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot embed linux libraries ending with .so.1.0.0 #424

@rrva

Description

@rrva

It seems you cannot embed libraries which have a name containing .so.1.0.0

For example I have a transitive dependency on libcrypto.so.1.0.0, which I cannot embed for now.

Platform.getEmbeddedLibraryResource() assumes all libraries end with ".so"

 if (path != null) {
        ret.add(path + "lib" + name + ".so");
        ret.add(path + name + ".so");
 }

An untested suggestion is:

 if (path != null) {
   if(name.contains(".so.")) {
       ret.add(path + name);
   } else {
        ret.add(path + "lib" + name + ".so");
        ret.add(path + name + ".so");
   }
 }

I'll see if there are more bits which need fixing than this for a library name like "libcrypto.so.1.0.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions