g++ -print-prefix or -print-install-prefix
Mark Mitchell
mark@codesourcery.com
Mon Oct 16 22:32:00 GMT 2006
Benjamin Kosnik wrote:
> For testing outside of the build directory, it would be convenient to
> have $SUBJECT.
>
> This could be used in conjunction with -dumpversion to create
> on-the-fly include and library directory paths for C++ includes in a
> sane manner, much like the following:
Why do you need this? For installed-compiler testing, the compiler
already searches the obvious places. (I'm not trying to be cute: I'm
genuinely curious.)
I agree that it would be nice if -print-search-dirs listed include
directories. It already lists the paths searched for programs and
libraries, so that seems like a logical place to add header directories.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc
mailing list