archive of archives

NightStrike nightstrike@gmail.com
Mon Apr 15 16:03:00 GMT 2013
On Mon, Apr 15, 2013 at 11:50 AM, Cary Coutant <ccoutant@google.com> wrote:
>> $ x86_64-w64-mingw32-ar  cru liba.a libb.a
>> $ x86_64-w64-mingw32-ranlib liba.a
>>
>> The resulting liba.a doesn't work too well:
>>
>> $ x86_64-w64-mingw32-nm liba.a
>> x86_64-w64-mingw32-nm: liba.a: File format not recognized
>>
>> ..and other failures.
>>
>> Should the above work, though?  Alan just kindly fixed a bug that let
>> objdump correctly tell me what's inside liba.a, so presumably it's a
>> supported thing to do.  Am I out in left field, though?
>
> No, it's not supposed to work. You can only nest archives with the thin
> archive option (T). Otherwise, you're just building an archive of ordinary
> files, not a library.

Darn.  Ok, thanks for the quick reply.



More information about the Binutils mailing list