title: Alternate to "`--whole-archive`" in bazel
body: <p>I want to link an external static lib in one of my bazel based c++ project. I need "<code>whole-archive</code>" option for linking the library like gcc or g++ build:</p>
  
  <pre><code>g++ main.cc -Wl,--whole-archive -lhttp -Wl,--no-whole-archive
  </code></pre>
  
  <p>Can anybody suggest what is the alternate to "<code>--whole-archive</code>" in bazel?</p>