imageworks/OpenShadingLanguage — pull request #257 by brechtvl (2013-05-29 20:03:57+00:00)
Title: Fix issue compiling LLVM bitcode against different OpenEXR version

Reorder include directories for building LLVM bitcode so that the openimageio, ilmbase and boost directories are ahead of any system directories given by llvm-config --cxxflags.

This avoids the LLVM bitcode getting compiled against different library versions than the rest of the code if multiple versions are installed, by making the include directory order the same for both.

The specific case where this happend was with llvm+clang and openexr 1.7 installed in the same directory, but trying to build against openexr 2.0 located somewhere else. This would then give a runtime error with some shaders:

LLVM ERROR: Program used external function '_ZN3Iex7BaseExcC2EPKc' which could not be resolved!