title: How do I set the rpath for C++ with Bazel on OS X
body: <p>I have tried adding the following to my <code>BUILD</code> file:</p>
  
  <pre><code>linkopts = ["-Wl,-rpath path/to/add"],
  </code></pre>
  
  <p>But when I check the executable with</p>
  
  <pre><code>otool -L path/to/executable
  </code></pre>
  
  <p>It does not include <code>path/to/add</code>.  How can I change the rpath in the executable using bazel.</p>