From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Mike Neuhauser Cc: egcs@cygnus.com Subject: Re: --with-headers for cross-compile broken? (egcs-971201) Date: Fri, 05 Dec 1997 10:44:00 -0000 Message-id: <24779.881340876@hurl.cygnus.com> References: <199712031110.MAA13120@scully.gams.co.at> X-SW-Source: 1997-12/msg00314.html 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