I think most people designing build systems (I'm one of them) would prefer to explicitly set the paths at each point rather than have gcc ferry values between inputs behind the scenes.
My build system will have already resolved all these paths. It's very easy to interpolate these paths into the command to call the compiler.
My build system will have already resolved all these paths. It's very easy to interpolate these paths into the command to call the compiler.