Re: [Cegcc-devel] Problem linking shared library with the GCC 4.4 toolchain

2009-06-02 Thread Danny Backx
Just committed a patch. Hope I got it right :-) Danny On Mon, 2009-06-01 at 14:44 +0100, Dave Korn wrote: > Danny Backx wrote: > > I'm not sure I understand what the cygwin.h code would do : > > "If nothing is specified on the command line, or if -static or > -static-libgcc is present,

Re: [Cegcc-devel] Problem linking shared library with the GCC 4.4 toolchain

2009-06-01 Thread Dave Korn
Danny Backx wrote: > I'm not sure I understand what the cygwin.h code would do : "If nothing is specified on the command line, or if -static or -static-libgcc is present, link against the static libgcc. If -shared-libgcc is explicitly specified, or if building a DLL (-shared) and not explicitly

Re: [Cegcc-devel] Problem linking shared library with the GCC 4.4 toolchain

2009-06-01 Thread Dave Korn
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 t

Re: [Cegcc-devel] Problem linking shared library with the GCC 4.4 toolchain

2009-06-01 Thread Danny Backx
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:-lgc

Re: [Cegcc-devel] Problem linking shared library with the GCC 4.4 toolchain

2009-06-01 Thread Johnny Willemsen
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 > >> I've not looked into this sufficiently, but I got a similar problem > >> solved in src/mingwdll/libstdc++ by changing the Makefile like this >

Re: [Cegcc-devel] Problem linking shared library with the GCC 4.4 toolchain

2009-06-01 Thread Johnny Willemsen
Hi, > I've not looked into this sufficiently, but I got a similar problem > solved in src/mingwdll/libstdc++ by changing the Makefile like this : > > pavilion: {23} diff Makefile~ Makefile > 18c18 > < DLL_LIBS= -lgcc # -lws2 > --- >> DLL_LIBS= -lgcc -lgcc_s # -lws2 we don't link with thes

Re: [Cegcc-devel] Problem linking shared library with the GCC 4.4 toolchain

2009-06-01 Thread Danny Backx
I've not looked into this sufficiently, but I got a similar problem solved in src/mingwdll/libstdc++ by changing the Makefile like this : pavilion: {23} diff Makefile~ Makefile 18c18 < DLL_LIBS= -lgcc # -lws2 --- > DLL_LIBS= -lgcc -lgcc_s # -lws2 Danny On Mon, 2009-06-01 at 07:52 +0200