From: <dan...@ya...> - 2004-01-20 00:28:22
|
--- "J. Grant" <jg-...@jg...> wrote: > > > That is wrong. All the binaries were built natively, using make bootstrap. > > mingw32-gcc.exe is a copy of gcc.exe. > > Are you sure? Yes I'm sure about the binaries distributed by mingw.org In which case, which "native" compiler of win32 is used, > and where can I download it please? If this native compile is gcc, how > was it compiled natively for win32 initially? I used mingw build of gcc to build gcc. Earlier builds of mingw gcc (2.95.2 and earlier) were cross-compiled on linux I think. > > Seems like no one is completely clear what the FAQ entry was aimed at > indicating, or what is the actual practice is. Could someone "in the > know" clarify clearly please? Here is how gcc.exe and mingw32-gcc.exe come into the world (from the Makefile): # Install the driver program as $(target_noncanonical)-gcc, # $(target_noncanonical)-gcc-$(version) # and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc. install-driver: installdirs xgcc$(exeext) -rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext) -$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext) -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version) -( cd $(DESTDIR)$(bindir) && \ $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version) ) -if [ -f gcc-cross$(exeext) ] ; then \ if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \ rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ $(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ else true; fi; \ else \ rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-tmp$(exeext); \ ( cd $(DESTDIR)$(bindir) && \ $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-tmp$(exeext) && \ mv -f $(target_noncanonical)-gcc-tmp$(exeext) $(GCC_TARGET_INSTALL_NAME)$(exeext) ); \ fi in this case $(target_noncanonical) = "mingw32" and $(LN) is effectively cp Danny > > JG > > http://personals.yahoo.com.au - Yahoo! Personals New people, new possibilities. FREE for a limited time. |