Wiki page docs-efl-buildenv changed with summary [] by Raster

This commit is contained in:
Carsten Haitzler 2015-06-18 19:46:15 -07:00 committed by apache
parent 5e11532521
commit 823a24f094
1 changed files with 20 additions and 0 deletions

View File

@ -6,6 +6,26 @@ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:"$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH=/usr/local/lib:"$LD_LIBRARY_PATH"
</code>
Below choose one of the following ''CFLAGS'' to use. To ensure your code is compiled with decent optimzations you should also set this up in your environment:
<code bash>
export CFLAGS="-O3 -ffast-math -march=native"
</code>
Note that if you wish to compile for older architectures than your current system, please look up the compiler documentation and replace ''-march=native'' with something appropriate.
If you wish decently optimized code that is still debuggable (but that optimizations may still make a little hard to debug) you can do:
<code bash>
export CFLAGS="-O2 -ffast-math -march=native -g"
</code>
If you want a really debuggable piece of code where optimizations mess with little to nothing at all use:
<code bash>
export CFLAGS="-O -g -ffast-math -march=native"
</code>
==== Runtime Library Linking ====
Note the ''LD_LIBRARY_PATH'' environment variable is set. You can ensure the system always supports ''/usr/local/lib'' by editing ''/etc/ld.so.conf'' or adding a file to ''/etc/ld.so.conf.d'' and simply have a line in either file that says: