title: Android : merging static libraries into single one
body: <p>I use Android NDK r8 to generate multiple static libraries with <strong>include $(BUILD_STATIC_LIBRARY)</strong> and I successfully get : lib1.a, lib2.a, lib3.a, etc.</p>
  
  <p>Now I would like to merge these static libraries into single one.</p>
  
  <p>I try do it with ar.exe from Android NDK :</p>
  
  <pre><code>android-ndk-r8\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\arm-linux-androideabi\bin\ar.exe r libALL.a lib1.a lib2.a lib3.a
  </code></pre>
  
  <p>But when I use <strong>libAll.a</strong> into Android NDK makefile, it fails saying there is no index.</p>
  
  <p>How can I add this index ?</p>
  
  <p><strong>Other question :</strong></p>
  
  <p>When I display contents of archive <strong>libAll.a</strong>, I see <strong>lib1.a</strong>, <strong>lib2.a</strong>, <strong>lib3.a</strong> instead of <strong>.o</strong> symbols from these libraries.</p>
  
  <p>How can I change that (= extract .o from static libraries to merge it in libAll.a) ?</p>
  
  <p>Thanks</p>