Details
Description
When gSystem->ChangeDirectory() is used during the execution of a program to move to a different directory, the subsequent attempts to locate header files will fail. This is even the case when the proper folder to the header file(s) is set via ROOT_INCLUDE_PATH env variable.
Attached is a simple reproducer project:
cd root-include-bug
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)
export ROOT_INCLUDE_PATH=$(pwd)
make
./loader
-> this works
./loader changeDir
-> this fails