This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Extract static object from dynamic one
- From: "Tom Browder" <tom dot browder at gmail dot com>
- To: "Thomas Köppe" <t dot koeppe at ed dot ac dot uk>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 4 Dec 2007 05:58:18 -0600
- Subject: Re: Extract static object from dynamic one
- References: <47548F85.8040002@ed.ac.uk>
On Dec 3, 2007 5:21 PM, Thomas Köppe <t.koeppe@ed.ac.uk> wrote:
...
> Suppose I have a dynamic C library libfoo.so (or foo.dll) along with
> headers in foo.h. Is it possible to build from the binary a static
> library libfoo.a?
I believe GNU libtool can be used to do that. Check out the docs at
http://www.gnu.org/software/libtool/manual.html
-Tom
Tom Browder
Niceville, Florida
USA