This is the mail archive of the gcc-patches@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]

Re: [C++] include directory configury


> Do you mean, when do you move the installed compiler to another place?
> For instance when you install it from a relocatable RPM.

am I ever busted........

>   Benjamin> then perhaps both gcc_gxx_include_dir and
>   Benjamin> gcc_gxx_target_include_dir should use the same variable
>   Benjamin> for the common bits.
> 
> Unfortunately, the parallel ugly expression for gcc_gxx_include_dir is
> generated by configure, if you don't specify --with-gxx-include-dir
> (otherwise it uses whatever path you specify).  

Hmm. My point being that the target includes are installed in the same 
place in this case. See src/Makefile.am:

# Check for various configure bits that change where the headers get 
installed.
if GXX_INCLUDE_DIR
myincludep = @gxx_include_dir@
targetincludep = @gxx_include_dir@
else
if VERSION_SPECIFIC_LIBS
myincludep = $(libdir)/gcc-lib/$(target_alias)/@gcc_version@/include/g++
targetincludep = $(libdir)/gcc-lib/$(target_alias)/@gcc_version@/include/g++
else
myincludep = $(prefix)/include/g++-@libstdcxx_interface@
targetincludep = @gxx_target_include_dir@
endif
endif

See what I mean?

-benjamin

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