Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an app I am building on Linux (Ubuntu). The steps involved are ./configure with certain options, make, and then execute the app.

By default the app links/uses a shared library present in the folder /usr/local/lib/, but I have downloaded the latest source for this Starpu and installed it in my home $HOME/lib/.

I tried using this new library as an input to the configure command as below and even removed the /usr/local/lib from my LD_LIBRARY_PATH, but still when I check with ldd, it seems to show the executable is built with the old version of the library in /usr/local/lib.

./configure LDFLAGS="-l:$HOME/lib/"

How do I make my build system to use the newer version of this shared library in a different folder than the system default of /usr/local/lib?

Do I need to modify anything in my build related makefiles, configure files?

share|improve this question


LD_LIBRARY_PATH="$HOME/lib" ./configure

Anyway, check the environment variables explained here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.