Tag Info

New answers tagged

1

Set rpath to $ORIGIN/libs and set soname to libsharedobject rather than libs/libsharedobject. My makefile is as follows. all: my_program libs/libmysharedobject.so: Makefile success.c gcc -fPIC -shared -Wl,-soname,libmysharedobject.so \ -o libs/libmysharedobject.so success.c my_program: Makefile libs/libmysharedobject.so gcc -o my_program main.c ...


2

This functionality is not disallowed, it is just not very common as a result of the way most libraries numbering work and because of the inconvenience of package name changes. If the use a dotted version number scheme X.Y.Z. The "micro" version Z often changes on bugfixes, the "minor" number Y changes on backward compatible changes and the "major" version ...


4

Actually, you can install multiple versions of a shared library if it's done properly. Shared libraries are usually named as follows: lib<name>.so.<api-version>.<minor> Next, there are symlinks to the library under the following names: lib<name>.so lib<name>.so.<api-version> When a developer links against the ...



Top 50 recent answers are included