Merge .lo into .so

Good day to everyone.
I've built an libxml2 from sources. I can not install it in a proper way with using repository due to I have not sudo privilegies. I've got a set of .lo files. Is there a simple way to merge it in one .so or .a file?

Sounds like it stopped after it ran libtool with

--mode=compile mode

. See if you can run libtool again with

--mode=link

to produce .a and .so libraries.

libtool is a wrapper for gcc, ln, ar, and ranlib. libtool runs gcc adding the
necessary options to ensure that your static and shared libraries are created
correctly.

libtool inserts the -fPIC tag to ensure the necessary generation of position
independent code. If you created any .o files these are normal object files
that can be archived (ar) into a static .a file. .lo files are fPIC object files
which can now be linked into an .so file.

You got these intermediate files because of failed permissions on /usr/lib.
You will have to use libtool to do a final link - .lo files are special to libtool only.
Not much else can deal with 'em.

Please read examples on linking .lo -> .so:

Libtool

2 Likes

Thanks. Indeed there are 3 steps in the library install:
-./configure
-make
-make install

I've made initial two steps, but I don't need to install it in the system. It seems that I'll need to dig make file to find the library compillation command with libtool.