title: building static library that depends on another static library
body: <p>I have a case where there are two libraries lib1 and lib2. lib2 has dependencies on lib1. In my case lib2 is basically a high level wrapper around the functions inside lib1.
  The final application is just going to use functions from lib2 by including the relevant header.
  How do I statically build the libraries and link them to the final program? </p>