4

When linking a static library as a thin archive the .o-files are not copied into the archive, but rather they are referenced with their relative path from the .a file.

How can I check if a given .a file is a thin archive or not?

vidstige
  • 12,492
  • 9
  • 66
  • 110

1 Answers1

5

How can I check if a given .a file is a thin archive or not?

head -1 t.a 
!<thin>

Eventually, file(1) should be able to tell you. My file-5.09 just says data.

Employed Russian
  • 199,314
  • 34
  • 295
  • 362