How to link .la library file with linux

I use an open source library and it is created in a file like libshared.la. Can I statically link this file using regular gcc commands? I am more familiar with dynamically linking a .so file and statically linking .a files. Not sure about .la. thanks!

+4
source share
1 answer

This is the libtool file. You can use it with libtool :

 $ libtool --mode=link gcc -g -O -o test test.o \ /usr/local/lib/libhello.la 

More on libtool :

+9
source

All Articles