This is the mail archive of the gcc-bugs@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: EGCS broken on Cygwin32


> So one could argue this is a problem in the existing compiler since
> it looks like we've decided that the compiler should be adding -ladvapi32
> automatically.

>   > Basically, you need to add -ladvapi32 at the end of LIB_SPEC in 
>   > gcc/config/i386/cygwin32.h file.
> This patch is in the egcs sources, but since David is still in stage1
> this patch does not come into play.

Sucess! (At least for the time being!). As per Mumit's suggestions I added
-ladvapi32 to the libs section in the "specs" file. It is now busy building
the rest of the compiler OK. It is chucking up a small(?) error:

gcc  -DIN_GCC    -g -O2  -DHAVE_CONFIG_H     -I. -I/tools/egcs/gcc
-I/tools/egcs
/gcc/config \
-DPREFIX=\"/usr/local\" \
  -c `echo /tools/egcs/gcc/prefix.c | sed 's,^\./,,'`
In file included from config.h:3,
                 from /tools/egcs/gcc/prefix.c:66:
/tools/egcs/gcc/config/i386/xm-cygwin32.h:35: warning: `POSIX' redefined
*Initialization*:1: warning: this is the location of the previous
definition

but other than that things are proceeding OK. If this completes to the end
of the compiler OK..I can start on the m68k-coff cross compiler(which works
beautifully under Linux by the way!)

Thanks for the help,
Dave

Dave Fiddes, CALM Software Production Officer
Department of Mathematics, Heriot-Watt University, Edinburgh
email D.J.Fiddes@hw.ac.uk - Tel: 0131-451-3251



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