title: Build a command line tool without dynamically linking to specific file location (macOS)
body: <p>I'm working on a small utility that uses the libtiff tools <code>tiff2pdf</code> and <code>tiffcp</code>.  I would like to be able to distribute it with the binaries for those two tools so that it could be run from wherever it is downloaded to.</p>
  
  <p>I've built libtiff following the instructions <a href="http://mac-dev-env.patrickbougie.com/libtiff/" rel="nofollow noreferrer">here</a> but after building, the tools rely on <code>libtiff.5.dylib</code> which is in a location specific to my machine based on the step <code>./configure --prefix=/path_here.../</code>.  I also tried <code>./configure --enable-static --prefix=/path_here.../</code> but according to <code>otool -l tiff2pdf</code> it's still dynamically linked.</p>
  
  <p>Is there a generic method that will produce a binary that isn't linked to a hard coded location on the system?  Linking to a relative path would be fine if that's possible.</p>