<div dir="ltr">Well, this is not quite correct, since the options are platform-dependent in some cases, e.g. for instance, AmigaOS is adding -Wno-format, PS2 port adds -<span class="">W</span><span class="">no-unused-parameter </span><span class="">-W</span><span class="">conversion, -Wuninitialized, etc.</span><div><span class=""><br></span></div><div><span class="">In other words, study configure and resulting <a href="http://config.mk">config.mk</a>.</span></div><div><span class=""><br></span></div><div><span class=""><br></span></div><div><span class="">Eugene</span></div><div><span class=""><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 January 2015 at 08:42, Einar Johan Trøan Sømåen <span dir="ltr"><<a href="mailto:einarjohants@gmail.com" target="_blank">einarjohants@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Well, my point still stands though, configure && make -n will give you the answers you seek on platforms that use configure & make.<br></div><div><br></div><div>A sample pick from my (non master-branch, but I _think_ it is clean-ish):</div><div><br></div><div>echo ' ' C++ ' ' common/zlib.o;g++ -MMD -MF "common/.deps/zlib.d" -MQ "common/zlib.o" -MP -Wall -I/usr/local/include -I/opt/local/include -g -ansi -W -Wno-unused-parameter -Wconversion -pedantic -Wno-long-long -Wglobal-constructors -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -Wpointer-arith -Wcast-qual -Wshadow -Wnon-virtual-dtor -Wwrite-strings -fno-exceptions -Wno-conversion -Wno-shorten-64-to-32 -Wno-sign-compare -Wno-four-char-constants -Wno-nested-anon-types -DSCUMMVM_REVISION=\"1510-g244da22\" -DHAVE_CONFIG_H -DMACOSX -DSDL_BACKEND -DPOSIX -DDATA_PATH=\"/usr/local/share/scummvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/scummvm\" -DENABLE_SCUMM=STATIC_PLUGIN -DENABLE_SCUMM_7_8 -DENABLE_HE -DENABLE_AGI=STATIC_PLUGIN -DENABLE_AGOS=STATIC_PLUGIN -DENABLE_AGOS2 -DENABLE_CGE=STATIC_PLUGIN -DENABLE_CINE=STATIC_PLUGIN -DENABLE_COMPOSER=STATIC_PLUGIN -DENABLE_CRUISE=STATIC_PLUGIN -DENABLE_DRACI=STATIC_PLUGIN -DENABLE_DRASCULA=STATIC_PLUGIN -DENABLE_DREAMWEB=STATIC_PLUGIN -DENABLE_GOB=STATIC_PLUGIN -DENABLE_GROOVIE=STATIC_PLUGIN -DENABLE_HOPKINS=STATIC_PLUGIN -DENABLE_HUGO=STATIC_PLUGIN -DENABLE_KYRA=STATIC_PLUGIN -DENABLE_LOL -DENABLE_EOB -DENABLE_LURE=STATIC_PLUGIN -DENABLE_MADE=STATIC_PLUGIN -DENABLE_MOHAWK=STATIC_PLUGIN -DENABLE_MORTEVIELLE=STATIC_PLUGIN -DENABLE_NEVERHOOD=STATIC_PLUGIN -DENABLE_PARALLACTION=STATIC_PLUGIN -DENABLE_PEGASUS=STATIC_PLUGIN -DENABLE_QUEEN=STATIC_PLUGIN -DENABLE_SAGA=STATIC_PLUGIN -DENABLE_IHNM -DENABLE_SCI=STATIC_PLUGIN -DENABLE_SKY=STATIC_PLUGIN -DENABLE_SWORD1=STATIC_PLUGIN -DENABLE_SWORD2=STATIC_PLUGIN -DENABLE_TEENAGENT=STATIC_PLUGIN -DENABLE_TINSEL=STATIC_PLUGIN -DENABLE_TOLTECS=STATIC_PLUGIN -DENABLE_TONY=STATIC_PLUGIN -DENABLE_TOON=STATIC_PLUGIN -DENABLE_TOUCHE=STATIC_PLUGIN -DENABLE_TSAGE=STATIC_PLUGIN -DENABLE_TUCKER=STATIC_PLUGIN -DENABLE_VOYEUR=STATIC_PLUGIN -DENABLE_WINTERMUTE=STATIC_PLUGIN -I. -I. -I./engines -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include/freetype2 -c common/zlib.cpp -o common/zlib.o<br></div><div><br></div><div>In addition though, there is --enable-optimizations, which also changes things up a bit.<br></div><div><br></div><div>echo ' ' C++ ' ' common/zlib.o;g++ -MMD -MF "common/.deps/zlib.d" -MQ "common/zlib.o" -MP -Wall -I/usr/local/include -I/opt/local/include -g -ansi -W -Wno-unused-parameter -Wconversion -pedantic -Wno-long-long -Wglobal-constructors -O2 -Wuninitialized -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -Wpointer-arith -Wcast-qual -Wshadow -Wnon-virtual-dtor -Wwrite-strings -fno-exceptions -Wno-conversion -Wno-shorten-64-to-32 -Wno-sign-compare -Wno-four-char-constants -Wno-nested-anon-types -DSCUMMVM_REVISION=\"1510-g244da22\" -DHAVE_CONFIG_H -DMACOSX -DSDL_BACKEND -DPOSIX -DDATA_PATH=\"/usr/local/share/scummvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/scummvm\" -DENABLE_SCUMM=STATIC_PLUGIN -DENABLE_SCUMM_7_8 -DENABLE_HE -DENABLE_AGI=STATIC_PLUGIN -DENABLE_AGOS=STATIC_PLUGIN -DENABLE_AGOS2 -DENABLE_CGE=STATIC_PLUGIN -DENABLE_CINE=STATIC_PLUGIN -DENABLE_COMPOSER=STATIC_PLUGIN -DENABLE_CRUISE=STATIC_PLUGIN -DENABLE_DRACI=STATIC_PLUGIN -DENABLE_DRASCULA=STATIC_PLUGIN -DENABLE_DREAMWEB=STATIC_PLUGIN -DENABLE_GOB=STATIC_PLUGIN -DENABLE_GROOVIE=STATIC_PLUGIN -DENABLE_HOPKINS=STATIC_PLUGIN -DENABLE_HUGO=STATIC_PLUGIN -DENABLE_KYRA=STATIC_PLUGIN -DENABLE_LOL -DENABLE_EOB -DENABLE_LURE=STATIC_PLUGIN -DENABLE_MADE=STATIC_PLUGIN -DENABLE_MOHAWK=STATIC_PLUGIN -DENABLE_MORTEVIELLE=STATIC_PLUGIN -DENABLE_NEVERHOOD=STATIC_PLUGIN -DENABLE_PARALLACTION=STATIC_PLUGIN -DENABLE_PEGASUS=STATIC_PLUGIN -DENABLE_QUEEN=STATIC_PLUGIN -DENABLE_SAGA=STATIC_PLUGIN -DENABLE_IHNM -DENABLE_SCI=STATIC_PLUGIN -DENABLE_SKY=STATIC_PLUGIN -DENABLE_SWORD1=STATIC_PLUGIN -DENABLE_SWORD2=STATIC_PLUGIN -DENABLE_TEENAGENT=STATIC_PLUGIN -DENABLE_TINSEL=STATIC_PLUGIN -DENABLE_TOLTECS=STATIC_PLUGIN -DENABLE_TONY=STATIC_PLUGIN -DENABLE_TOON=STATIC_PLUGIN -DENABLE_TOUCHE=STATIC_PLUGIN -DENABLE_TSAGE=STATIC_PLUGIN -DENABLE_TUCKER=STATIC_PLUGIN -DENABLE_VOYEUR=STATIC_PLUGIN -DENABLE_WINTERMUTE=STATIC_PLUGIN -I. -I. -I./engines -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include/freetype2 -c common/zlib.cpp -o common/zlib.o<br></div><div><br></div><div><div>If you add --enable-release, you'll get:</div><div>echo ' ' C++ ' ' common/zlib.o;g++ -MMD -MF "common/.deps/zlib.d" -MQ "common/zlib.o" -MP -Wall -I/usr/local/include -I/opt/local/include -g -ansi -W -Wno-unused-parameter -Wconversion -pedantic -Wno-long-long -Wglobal-constructors -O2 -Wuninitialized -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -Wpointer-arith -Wcast-qual -Wshadow -Wnon-virtual-dtor -Wwrite-strings -fno-exceptions -Wno-conversion -Wno-shorten-64-to-32 -Wno-sign-compare -Wno-four-char-constants -Wno-nested-anon-types -DSCUMMVM_REVISION=\"1510-g244da22\" -DHAVE_CONFIG_H -DRELEASE_BUILD -DMACOSX -DSDL_BACKEND -DPOSIX -DDATA_PATH=\"/usr/local/share/scummvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/scummvm\" -DENABLE_SCUMM=STATIC_PLUGIN -DENABLE_SCUMM_7_8 -DENABLE_HE -DENABLE_AGI=STATIC_PLUGIN -DENABLE_AGOS=STATIC_PLUGIN -DENABLE_AGOS2 -DENABLE_CGE=STATIC_PLUGIN -DENABLE_CINE=STATIC_PLUGIN -DENABLE_COMPOSER=STATIC_PLUGIN -DENABLE_CRUISE=STATIC_PLUGIN -DENABLE_DRACI=STATIC_PLUGIN -DENABLE_DRASCULA=STATIC_PLUGIN -DENABLE_DREAMWEB=STATIC_PLUGIN -DENABLE_GOB=STATIC_PLUGIN -DENABLE_GROOVIE=STATIC_PLUGIN -DENABLE_HOPKINS=STATIC_PLUGIN -DENABLE_HUGO=STATIC_PLUGIN -DENABLE_KYRA=STATIC_PLUGIN -DENABLE_LOL -DENABLE_EOB -DENABLE_LURE=STATIC_PLUGIN -DENABLE_MADE=STATIC_PLUGIN -DENABLE_MOHAWK=STATIC_PLUGIN -DENABLE_MORTEVIELLE=STATIC_PLUGIN -DENABLE_NEVERHOOD=STATIC_PLUGIN -DENABLE_PARALLACTION=STATIC_PLUGIN -DENABLE_PEGASUS=STATIC_PLUGIN -DENABLE_QUEEN=STATIC_PLUGIN -DENABLE_SAGA=STATIC_PLUGIN -DENABLE_IHNM -DENABLE_SCI=STATIC_PLUGIN -DENABLE_SKY=STATIC_PLUGIN -DENABLE_SWORD1=STATIC_PLUGIN -DENABLE_SWORD2=STATIC_PLUGIN -DENABLE_TEENAGENT=STATIC_PLUGIN -DENABLE_TINSEL=STATIC_PLUGIN -DENABLE_TOLTECS=STATIC_PLUGIN -DENABLE_TONY=STATIC_PLUGIN -DENABLE_TOON=STATIC_PLUGIN -DENABLE_TOUCHE=STATIC_PLUGIN -DENABLE_TSAGE=STATIC_PLUGIN -DENABLE_TUCKER=STATIC_PLUGIN -DENABLE_VOYEUR=STATIC_PLUGIN -DENABLE_WINTERMUTE=STATIC_PLUGIN -I. -I. -I./engines -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include/freetype2 -c common/zlib.cpp -o common/zlib.o</div></div><div><br></div><div>So, cleaning up a bit, you'll find:</div><div><br></div><div>No options:</div><div><div>-MP </div><div>-Wall </div><div>-g </div><div>-ansi </div><div>-W </div><div>-Wno-unused-parameter </div><div>-Wconversion </div><div>-pedantic </div><div>-Wno-long-long </div><div>-Wglobal-constructors </div><div>-Wno-long-long </div><div>-Wno-multichar </div><div>-Wno-unknown-pragmas </div><div>-Wno-reorder </div><div>-Wpointer-arith </div><div>-Wcast-qual </div><div>-Wshadow </div><div>-Wnon-virtual-dtor </div><div>-Wwrite-strings </div><div>-fno-exceptions </div><div>-Wno-conversion </div><div>-Wno-shorten-64-to-32 </div><div>-Wno-sign-compare </div><div>-Wno-four-char-constants </div><div>-Wno-nested-anon-types</div><div> -DSCUMMVM_REVISION=\"1510-g244da22\" </div><div>-DHAVE_CONFIG_H </div><div>-DMACOSX </div><div>-DSDL_BACKEND </div><div>-DPOSIX </div><div>-D_GNU_SOURCE=1 </div><div>-D_THREAD_SAFE <br></div></div><div><br></div><div>With --enable-optimizations this is added:</div><div><br></div><div>-O2 <br></div><div>-Wuninitialized </div><div><br></div><div>Finally, with both --enable-optimizations, and --enable-release we add:</div><div><br></div><div>-DRELEASE_BUILD<br></div><div><br></div><div><br></div><div>Now, this is on OS X 10.10 with Apple LLVM 6 (clang 600). It _might_ be wrong as mentioned earlier, as I just grabbed my current repos state and ran configure & make. The branch I was on was an attempt I had at making cmake work, but to avoid interference, I checked git log (0 commits done), and did git stash, prior to running the above, so it should in theory be correct.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Einar Johan</div></font></span><div><div class="h5"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-06 4:00 GMT+01:00 Fiodar Strizhniou <span dir="ltr"><<a href="mailto:fedor_qd@mail.ru" target="_blank">fedor_qd@mail.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For Symbian "configure + make" used for create plugin_tables.h only. For binary builds Symbian use own build system, which creates makefiles and run make for them.<br>
One day I build static libs for myself, this was untrivial and hard, and this libs was incompatible with Arm bare metal ABI.<br>
Always yours, Strizhniou Fedor.<br>
С уважением, Стрижнёв Фёдор.<br>
<br>
исходное сбщ<br>
Тема: Re: [Scummvm-devel] compiler options usage<br>
От: Einar Johan Trøan Sømåen <<a href="mailto:somaen@scummvm.org" target="_blank">somaen@scummvm.org</a>><br>
Дата: 05.01.2015 22.12<br>
<div><div><br>
Have you tried running:<br>
./configure<br>
make -n<br>
<br>
And looking at the resulting calls? Or were you interested in something<br>
else?<br>
<br>
2015-01-05 19:25 GMT+01:00 Федор <<a href="mailto:fedor_qd@mail.ru" target="_blank">fedor_qd@mail.ru</a>>:<br>
<br>
> Which compiler options used to build Scummvm? Espesially for arm devices.<br>
> Symbian port works well, but I want make better =)<br>
> My options now :<br>
> -pipe -Wno-multichar -Wno-reorder -Wno-unused -Wno-format -fsigned-char<br>
> -Wno-psabi<br>
><br>
><br>
> С уважением, Федор Стрижнёв.<br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> Dive into the World of Parallel Programming! The Go Parallel Website,<br>
> sponsored by Intel and developed in partnership with Slashdot Media, is<br>
> your<br>
> hub for all things parallel software development, from weekly thought<br>
> leadership blogs to news, videos, case studies, tutorials and more. Take a<br>
> look and join the conversation now. <a href="http://goparallel.sourceforge.net" target="_blank">http://goparallel.sourceforge.net</a><br>
> _______________________________________________<br>
> Scummvm-devel mailing list<br>
> <a href="mailto:Scummvm-devel@lists.sourceforge.net" target="_blank">Scummvm-devel@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/scummvm-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/scummvm-devel</a><br>
><br>
><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Dive into the World of Parallel Programming! The Go Parallel Website,<br>
sponsored by Intel and developed in partnership with Slashdot Media, is your<br>
hub for all things parallel software development, from weekly thought<br>
leadership blogs to news, videos, case studies, tutorials and more. Take a<br>
look and join the conversation now. <a href="http://goparallel.sourceforge.net" target="_blank">http://goparallel.sourceforge.net</a><br>
_______________________________________________<br>
Scummvm-devel mailing list<br>
<a href="mailto:Scummvm-devel@lists.sourceforge.net" target="_blank">Scummvm-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/scummvm-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/scummvm-devel</a><br>
</div></div></blockquote></div><br></div></div></div></div>
<br>------------------------------------------------------------------------------<br>
Dive into the World of Parallel Programming! The Go Parallel Website,<br>
sponsored by Intel and developed in partnership with Slashdot Media, is your<br>
hub for all things parallel software development, from weekly thought<br>
leadership blogs to news, videos, case studies, tutorials and more. Take a<br>
look and join the conversation now. <a href="http://goparallel.sourceforge.net" target="_blank">http://goparallel.sourceforge.net</a><br>_______________________________________________<br>
Scummvm-devel mailing list<br>
<a href="mailto:Scummvm-devel@lists.sourceforge.net">Scummvm-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/scummvm-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/scummvm-devel</a><br>
<br></blockquote></div><br></div>