Alright, this is fairly common question when you are trying to generate a static binary or have come across situations when you want to find out all the dependencies of a library.
Example:
The problem: How the hell do I figure out all the static dependencies of libxml-2 ?
The solution: Its easy, use pkg-config !!
Here is how to list all the static dependencies of libxml-2
Run the below command:
Example:
The problem: How the hell do I figure out all the static dependencies of libxml-2 ?
The solution: Its easy, use pkg-config !!
Here is how to list all the static dependencies of libxml-2
Run the below command:
pkg-config --static --libs libxml-2.0
and this returns a list
and this returns a list
-lxml2 -lpthread -lz -lm
No comments:
Post a Comment