This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Saturday 13 August 2005 12:58 am, Mike Frysinger wrote: > On Saturday 13 August 2005 12:18 am, Dan Kegel wrote: > > a little googling found an old post from the master: > > http://gcc.gnu.org/ml/gcc/2002-08/msg00076.html > > > > I haven't looked to see what his solution looked like > > or whether it still applies, but it at least looked interesting. > > looks like both fixing the specs file and install syslimits.h still applies > to gcc-3.4.4 ... must remember to google before asking :/ how does the attached patch look ? i tested against 3.4.4 with my softfloat armeb target from an amd64 host and i end up with syslimits.h in the proper place and no specs file ... also, the patch applies against 3.3.6 with a little fuzz, but clean enough to be usuable am i missing something or does this cover both issues ? -mike
When doing a canadian cross-compile, the fixincludes tool is disabled and thus the syslimits.h header file is not installed. So we install the default template (gsyslimits.h) in that case. Also, we disable the default spec generation step because the specs file comes from the cross-compiler which is building the cross-compiled gcc rather than the cross-compiled gcc itself. This is OK because the specs files is simply a copy of the settings built into gcc itself. http://gcc.gnu.org/ml/gcc/2002-08/msg00062.html Note: We use the STMP_FIXINC variable to determine whether we are in cross canadian mode or not because configure.ac will only unset it in that case ($build != $host). --- gcc/gcc/Makefile.in +++ gcc/gcc/Makefile.in @@ -2513,6 +2509,9 @@ rm -f include/limits.h cp xlimits.h include/limits.h chmod a+r include/limits.h + if [ x"$(STMP_FIXINC)" = x ]; then \ + cp $(srcdir)/gsyslimits.h include/syslimits.h; \ + fi # Install the README rm -f include/README cp $(srcdir)/README-fixinc include/README @@ -2933,7 +2924,7 @@ else true; fi; \ done # Don't mess with specs if it doesn't exist yet. - -if [ -f specs ] ; then \ + -if [ -f specs ] && [ x"$(STMP_FIXINC)" != x ] ; then \ rm -f $(DESTDIR)$(libsubdir)/specs; \ $(INSTALL_DATA) $(SPECS) $(DESTDIR)$(libsubdir)/specs; \ chmod a-x $(DESTDIR)$(libsubdir)/specs; \
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |