Static library is needed at compile time libraries.
1. Create a static library
[arm@localhost gcc]#armlinuxar r libhello.a h1.o h2.o
2. indexing static library
[arm@localhost gcc]#armlinuxar s libhello.a [arm@localhost gcc]#armlinuxranlib libhello.a
3. produce an executable file from a static library
[Arm @ localhost gcc] #armlinuxgcc o hello hello.c lhello L. / [arm @ localhost gcc] #armlinuxgcc o hello hello.c libhello.a hello files can be copied directly to / tmp directory run without libhello.a .