digitalmars.D - Windows GDC and libgcc_s_sjlj-1.dll
- Andre Tampubolon (3/3) Jul 20 2011 I just tried GDC on Windows, and I found out that the executables
- Kagamin (2/5) Jul 21 2011 Yes, there's a static version of libgcc, you should play with ld a bit.
- Daniel Green (2/7) Jul 21 2011 GCC has a command line option -static. That should remove the dependenc...
- Daniel Green (3/12) Jul 21 2011 Sorry, -static-libgcc is the option.
- Andre Tampubolon (11/24) Jul 21 2011 -static-libgcc didn't work
- Daniel Green (4/12) Jul 22 2011 My copy behaves the same way. I think it may be due to a patch I didn't...
- Daniel Green (4/7) Jul 23 2011 The libgcceh.patch from TDM GCC fixes the issue. Binaries with the
I just tried GDC on Windows, and I found out that the executables created are linked into libgcc_s_sjlj-1.dll. Will it be possible to get rid of the dependency on this DLL?
Jul 20 2011
Andre Tampubolon Wrote:I just tried GDC on Windows, and I found out that the executables created are linked into libgcc_s_sjlj-1.dll. Will it be possible to get rid of the dependency on this DLL?Yes, there's a static version of libgcc, you should play with ld a bit.
Jul 21 2011
On 7/21/2011 6:44 AM, Kagamin wrote:Andre Tampubolon Wrote:GCC has a command line option -static. That should remove the dependency.I just tried GDC on Windows, and I found out that the executables created are linked into libgcc_s_sjlj-1.dll. Will it be possible to get rid of the dependency on this DLL?Yes, there's a static version of libgcc, you should play with ld a bit.
Jul 21 2011
On 7/21/2011 6:52 PM, Daniel Green wrote:On 7/21/2011 6:44 AM, Kagamin wrote:Sorry, -static-libgcc is the option. http://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/Link-Options.html#Link-OptionsAndre Tampubolon Wrote:GCC has a command line option -static. That should remove the dependency.I just tried GDC on Windows, and I found out that the executables created are linked into libgcc_s_sjlj-1.dll. Will it be possible to get rid of the dependency on this DLL?Yes, there's a static version of libgcc, you should play with ld a bit.
Jul 21 2011
-static-libgcc didn't work gdc dhello.d -o dhello -static-libgcc c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh collect2: ld returned 1 exit status :( On 22-Jul-11 5:55 AM, Daniel Green wrote:On 7/21/2011 6:52 PM, Daniel Green wrote:-- - Andre Tampubolon -On 7/21/2011 6:44 AM, Kagamin wrote:Sorry, -static-libgcc is the option. http://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/Link-Options.html#Link-OptionsAndre Tampubolon Wrote:GCC has a command line option -static. That should remove the dependency.I just tried GDC on Windows, and I found out that the executables created are linked into libgcc_s_sjlj-1.dll. Will it be possible to get rid of the dependency on this DLL?Yes, there's a static version of libgcc, you should play with ld a bit.
Jul 21 2011
On 7/21/2011 11:16 PM, Andre Tampubolon wrote:-static-libgcc didn't work gdc dhello.d -o dhello -static-libgcc c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh collect2: ld returned 1 exit status :(My copy behaves the same way. I think it may be due to a patch I didn't apply during the build process. I am recompiling with that patch applied. I'll post back when it's done.
Jul 22 2011
On 7/22/2011 5:36 PM, Daniel Green wrote:My copy behaves the same way. I think it may be due to a patch I didn't apply during the build process. I am recompiling with that patch applied. I'll post back when it's done.The libgcceh.patch from TDM GCC fixes the issue. Binaries with the patch included have been uploaded. https://bitbucket.org/goshawk/gdc/downloads/
Jul 23 2011