Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2012 22:00:54 +0100
From:      Polytropon <>
Cc:        FreeBSD Mailing List <>
Subject:   Re: ld; extracting from libraries; and related questions
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, 29 Nov 2012 13:54:02 -0700, Gary Aitken wrote:
> Is it possible to extract a .o from a lib.a or, so I can compare
> it to the .o built by the make?

If I remember correctly (which requires a travel into the
distant past), I think "ar" - the library archiver - is
the tool you need.

Check "man ar", the EXAMPLES section:

     To verbosely list the contents of archive ex.a, use:
           ar -tv ex.a

So by using -x instead of -t, the members should be extracted.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Want to link to this message? Use this URL: <>