Autoconf, Libtool shared and static library

Posted by siddhusingh on Stack Overflow See other posts from Stack Overflow or by siddhusingh
Published on 2011-03-10T07:05:27Z Indexed on 2011/03/10 8:10 UTC
Read the original article Hit count: 285

Filed under:
|

I am using autoconf gnu tools to build my product. It generates both the shared as well as static library for any library where *.la is mentioned. The issue is if you use .la to link your binary in Makefile.am. It links with the dynamic library but when you use ldd to the binary, it says "not a dynamic executable" although it links with shared library. I proved it by removing the shared library after the binary is built and then tried to run the binary. It didn't find the shared library and couldn't run. Another question is how to put library in a specified location using Makefile.am direction ?

© Stack Overflow or respective owner

Related posts about autoconf

Related posts about libtool