------- Comment #5 from dannysmith at users dot sourceforge dot net  2008-11-21 
05:51 -------
(In reply to comment #4)
> Creating library file: .libs/libssp.dll.a
> .libs/ssp.o: In function `fail':
> /home/vmk/gccdev/gcctr11/gcc/libssp/ssp.c:109: undefined reference to
> `___chkstk'
> .libs/gets-chk.o: In function `__gets_chk':
> /home/vmk/gccdev/gcctr11/gcc/libssp/gets-chk.c:66: undefined reference to
> `___chkstk'


This is a different bug.  Cygwin uses the rules in gcc.c:init_gcc_specs to 
" Add appropriate libgcc specs to OBSTACK, taking into account
   various permutations of -shared-libgcc, -shared, and such.  "
These do not quite work for Windows targets because dll's do not allow any
reference to be undefined whey they are built.  Thus, the static libgcc.a must
generally be  included to resolve, eg __chkstk.    mingw works around this by
defining it's own REAL_LIBGCC_SPEC in mingw32.h that does this.  Perhaps cygwin
should do the same.  

Danny


-- 

dannysmith at users dot sourceforge dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dave dot korn at artimi dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37915

Reply via email to