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, but seems it doesn't work.
> >
> > Could any one let me know how can I get rid of this dependency?
>
> This should work:
>
> CC='gcc -static-libgcc -static-libstdc++' CXX='g++ -static-libgcc
> -static-libstdc++' ./configure
>
> This works for me!
I used CC='gcc -static-libgcc' and got what I want. What I used before that
didn't work was ./configure --enable-shared --disable-static
CFLAGS='-static-libgcc'.
Maybe cflags were wrongly ordered. Anyway, I'm able to statically build
now. Thanks to all of your guys

>
>
>
> ------------------------------------------------------------------------------
> Is your legacy SCM system holding you back? Join Perforce May 7 to find
> out:
> &#149; 3 signs your SCM is hindering your productivity
> &#149; Requirements for releasing software faster
> &#149; Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to