From: Luke D. <cod...@ho...> - 2003-02-25 03:36:37
|
>From: "Dave Murphy" <win...@nt...> >To: "Luke Dunstan" ><cod...@ho...>,<min...@li...> >Subject: RE: [Mingw-users] Compiling gcc for ARM >Date: Tue, 25 Feb 2003 00:14:58 -0000 > > > > > -----Original Message----- > > From: min...@li... > > [mailto:min...@li...]On Behalf Of Luke > > Dunstan > > > > >configured I'm getting c:/msys prepended to the hard coded > > >paths. Is there a way to prevent this? The MinGW binaries don't > > >seem to have this problem. > > > > > >Dave > > > > The MSYS directory is always considered to be the root "/" > > directory, so if > > you actually want a prefix of c:/arm, then configure with > > --prefix=c:/arm or > > --prefix=/c/arm. The MinGW binaries use a slight modification to > > cause them > > to search for header files relative to the bin directory, as > > described here: > > > > http://article.gmane.org/gmane.comp.gnu.mingw.user/5940 > > > > >I'd prefer the binary to search relative to the bin directory I think. The >object of the exercise was to avoid forcing the use of a particular drive >for those who don't want to compile gcc for themselves. > >I'm using the mingw source tree so the method outined for config.gcc in the >above message has already been implemented. This appears to be specific to >the target & seems not to be used for a mingw host. I think it should work. Are you saying that gcc/config/i386/x-mingw32 contains the text given in the above message, and xmake_file is set in config.gcc? > >The other difficulty I'm having is with STMP_FIXINC > > >The following fragment of gcc/configure.in would seem to set STMP_FIXINC & >STMP_FIXPROTO to null when the host environment differs from the target. No, it is checking whether the "build" environment differs from the "host", which are both mingw32 here. As a wild guess perhaps you could override this by putting "STMP_FIXINC=" in the host makefile fragment x-mingw32. > >STMP_FIXINC=stmp-fixinc AC_SUBST(STMP_FIXINC) >STMP_FIXPROTO=stmp-fixproto AC_SUBST(STMP_FIXPROTO) > ># And these apply if build != host. >if test x$build != x$host >then > HOST_PREFIX=build- > HOST_PREFIX_1=build- > HOST_CC='$(CC_FOR_BUILD)' > HOST_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) >$(XCFLAGS)' > > STMP_FIXINC= > STMP_FIXPROTO= >fi > >despite this for a host of i686-pc-mingw32 & target of arm-agb-elf I get >the >first option placed in the Makefile for gcc. > >Are there any good sources of information for how the configure process >operates with a view to figuring all this out? > >Dave I don't know where you could find this information :(. Luke _________________________________________________________________ MSN Instant Messenger now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/hotmail_messenger.asp |