title: How to build library without sudo?
body: <p>I usually build my library <code>./configure &amp;&amp; make &amp;&amp; sudo make install</code>. However the Travis docs discourage using sudo <a href="http://docs.travis-ci.com/user/workers/container-based-infrastructure/" rel="nofollow">http://docs.travis-ci.com/user/workers/container-based-infrastructure/</a></p>
  
  <p>So I changed the build command to <code>./configure --prefix=$HOME &amp;&amp; make &amp;&amp; make install</code>. This worked, however at the next step (building a Python extension) I got an error</p>
  
  <blockquote>
    <p>/usr/bin/ld: cannot find -lprimesieve</p>
  </blockquote>
  
  <p>Any ideas? Do I need to add <code>$HOME/lib</code> to some environment variables, because I changed prefix?</p>
  
  <ol>
  <li>My travis config <a href="https://github.com/hickford/primesieve-python/blob/travis-ci/.travis.yml" rel="nofollow">https://github.com/hickford/primesieve-python/blob/travis-ci/.travis.yml</a></li>
  <li>Build log with error <a href="https://travis-ci.org/hickford/primesieve-python/jobs/69536543#L382" rel="nofollow">https://travis-ci.org/hickford/primesieve-python/jobs/69536543#L382</a> </li>
  </ol>