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