Simple question really.
I'm compiling and installing all of the dependencies of a project to a custom location (project_root/build.dep). If one of the dependencies happens to exist on the host system as well, for instance python, how can I force the build environment to use project_root/build.dep/include/Python instead of /usr/include/Python, and link against project_root/build.dep/lib/libpython instead of /usr/lib/libpython?
export CFLAGS=project_root/build.dep/include export LDFLAGS=project_root/build.dep/lib
But it's still favouring the versions in PATH.
NOTE: Build systems in use by the dependencies are CMake, libtool, and bjam.
Edited by TheComet, 12 June 2014 - 05:12 AM.