I'm not sure I understand what the cygwin.h code would do :

#define SHARED_LIBGCC_SPEC " \
 %{static|static-libgcc:-lgcc -lgcc_eh} \
 %{!static: \
   %{!static-libgcc: \
     %{!shared: \
       %{!shared-libgcc:-lgcc -lgcc_eh} \
       %{shared-libgcc:-lgcc_s -lgcc} \
      } \
     %{shared:-lgcc_s -lgcc} \
    } \
  } "

Is a normal developer supposed to use -shared-libgcc ?

The DLL sample in test/shared runs these commands, and works as it
should :
pavilion: {408} make clean
rm -f *.exe *.dll *~ *.a test-dll.tar.gz
pavilion: {409} make
i386-mingw32ce-gcc -g --shared -o demodll.dll demodll.c
i386-mingw32ce-dlltool -d demodll.def -l libdemodll.a
i386-mingw32ce-gcc -g -o usedemo.exe usedemo.c -L. -ldemodll
pavilion: {410} ls -l
total 124
-rw-rw-r-- 1 danny danny   140 2009-05-31 15:23 debugdll.c
-rw-rw-r-- 1 danny danny  1264 2009-05-31 15:27 demodll.c
-rw-rw-r-- 1 danny danny    29 2007-09-17 22:27 demodll.def
-rwxrwxr-x 1 danny danny 66473 2009-06-01 15:10 demodll.dll
-rw-rw-r-- 1 danny danny  2128 2009-06-01 15:10 libdemodll.a
-rw-rw-r-- 1 danny danny   708 2009-05-31 14:23 Makefile
-rw-rw-r-- 1 danny danny    96 2007-09-17 22:27 testdll.c
-rw-rw-r-- 1 danny danny   243 2009-05-31 14:27 usedemo.c
-rwxrwxr-x 1 danny danny 23493 2009-06-01 15:10 usedemo.exe
pavilion: {411} 

        Danny

On Mon, 2009-06-01 at 13:31 +0100, Dave Korn wrote:
> Johnny Willemsen wrote:
> > Hi,
> > 
> > Thanks very much. Danny could you check Vincent patches? Maybe there are 
> > changes that have to applied also to the gcc 4.1 x86 toolchain.
> > 
> > Johnny
> 
>   Look at the handling of SHARED_LIBGCC_SPEC and REAL_LIBGCC_SPEC in
> particular.  There appears to be nothing to match it in
> gcc-4.4.0/gcc/config/i386/mingw32ce.h.  Compare with how cygwin.h and
> mingw32.h do it.
> 
>     cheers,
>       DaveK
> 
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to