Based on the context of your question, i believe you're asking about compiled Executable files.
Executable files do not contain the environment variables of the system they were compiled under. I'm assuming that you might mean Preprocessor directives... and the compiler flags that are often used via scripts - For example ./configure -compile-withssl
Execuable files that do contain the compiler flags used to compile them are specifically coded into them in the form of Preprocessor directives - typically in the form of #IF , #ENDIF statements and the like. They aren't included in the executables automatically - they must be intentionally coded in.
If an application wishes to include the evironment variables of the system it was compiled under it would, like wise, have to be coded in specifically. Although accomplishing this would not necessarily require preprocessor directives.
See Links on Pre-Processor Directives (C++):
Google for "Preprocessor directives
" for more info.
If this is not what you meant, could you please provide a more descriptive reply - with examples.