[Mingw-w64-public] Does GCC 4.9.0 supports -Wl,--gc-sections?

2016-03-19 Thread YIRAN LI
Hi guys, I'm compiling on MingW-W64 and had a problem in using -Wl,--gc-setions. I'm compiling 2 files into a shared library: a.c which contains a1, a2 and b.c which contains b1 b2. I used --fdata-sections -ffunction-setions to put each function into a separate text section and by dumpbin I

[Mingw-w64-public] how to remove libgcc_s_sjlj-1.dll dependency

2014-05-05 Thread YIRAN LI
Hi, I'm building an opensource project on mingw32 and found the generated dll depends on libgcc_s_sjlj-1.dll. The function referenced is __divdi3. I tried to add ldflags = -static- libgcc, but seems it doesn't work. Could any one let me know how can I get rid of this dependency? Thanks

Re: [Mingw-w64-public] how to remove libgcc_s_sjlj-1.dll dependency

2014-05-05 Thread YIRAN LI
- 发件人:YIRAN LI mrfun.ch...@gmail.com 发送日期:2014-05-05 15:19 收件人:mingw-w64-public 抄送: 主题:[Mingw-w64-public] how to remove libgcc_s_sjlj-1.dll dependency Hi, I'm building an opensource project on mingw32 and found the generated dll

Re: [Mingw-w64-public] how to remove libgcc_s_sjlj-1.dll dependency

2014-05-05 Thread YIRAN LI
2014-05-05 20:42 GMT+10:00 Rafaël Carré fun...@videolan.org: On 05/05/14 09:19, YIRAN LI wrote: Hi, I'm building an opensource project on mingw32 and found the generated dll depends on libgcc_s_sjlj-1.dll. The function referenced is __divdi3. I tried to add ldflags = -static- libgcc

Re: [Mingw-w64-public] how to remove libgcc_s_sjlj-1.dll dependency

2014-05-05 Thread YIRAN LI
2014-05-05 22:16 GMT+10:00 Teemu Nätkinniemi tnatk...@gmail.com: On 5.5.2014 10:19, YIRAN LI wrote: I'm building an opensource project on mingw32 and found the generated dll depends on libgcc_s_sjlj-1.dll. The function referenced is __divdi3. I tried to add ldflags = -static- libgcc

[Mingw-w64-public] How to do delay load in Mingw-w64

2014-04-29 Thread YIRAN LI
Hi friends, I'm now moving my ffmpeg build from MinGW to Mingw-w64 because the latter supports delay load. To be a bit more specific, ffmpeg could dynamically link to many external libraries, but I want these external libs be downloaded and used only when they are used (functions called). For