This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

g++ -print-prefix or -print-install-prefix


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:

%g++ -print-install-prefix
/mnt/share/bld/H-x86-gcc

%g++ -dumpversion
4.2.0

Then it'd be trivial to construct things like

/mnt/share/bld/H-x86-gcc/include/c++/4.2.0

Anyway. I suppose there's a way to get at this via

g++  -print-libgcc-file-name

but in the meantime, I'm wondering if there is a much easier way to go
about this that I'm currently overlooking.

Thoughts?

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]