On Mon, May 05, 2014, YIRAN LI wrote: > 2014-05-05 17:32 GMT+10:00 lh_mouse <lh_mo...@126.com>: > > > 0) Try -static first. I have been using this option since long ago and it > > never fails; > > 1) Try -static-libgcc -static-libstdc++. These two should be used > > together. Using only one of them does not work, at least on my machine. > > 2) There is no space in '-static-libgcc'. > > > > > Thanks, I used -static, but seems it causes the project to generate static > libs instead of dlls. I think it should be the problem of the project > (libtheora) and I've sent out a mail to libtheora's mail list.
You use -static and possible -static-something when building the final executable and only it. If you are not able to easily single out the build of the final executable (because it is a tool built as part of a larger project), a very efficient way is to build as usual, find the corresponding compilation command, copy-paste it and add -static yourself. It's not terribly clean but it's the easiest way to do it. -- Adrien Nader ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • 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