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]

Re: --with-headers for cross-compile broken? (egcs-971201)


  In message <199712031110.MAA13120@scully.gams.co.at>you write:
  > CROSS_COMPILE is defined. I tracked the problem down now,
  > egcs-971201/configure.in and egcs-971201/gcc/Makefile.in don't agree on
  > the location for the cross headers:
  > 
  > configure (see egcs-971201/configure.in) copies the headers to
  > 
  >     ${prefix}/${target_alias}/sys-include
  > 
  > while egcs-971201/gcc/Makefile.in defines CROSS_INCLUDE_DIR to be
  > 
  >     $(libsubdir)/sys-include
  > 
  > with libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(version)
  > 
  > So these two directories are clearly different, but which one is the
  > right one?
Either is correct (IMHO), though as you note they must be consistent!

The first is a little simpler -- there's a nice place where one can go
and find the target libraries, target includes and binaries suitable for
compiling and examining target objects.

The second is also good in that you could have different sets of include
files for different versions of cross compilers for the target.

I believe Cygnus uses the first version internally, but I don't want to 
force that convention on everyone if it doesn't make sense.



jeff


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