From 823a24f094b503ea39e1d140ff74eb7fff4b1a3c Mon Sep 17 00:00:00 2001 From: Raster Date: Thu, 18 Jun 2015 19:46:15 -0700 Subject: [PATCH] Wiki page docs-efl-buildenv changed with summary [] by Raster --- pages/docs-efl-buildenv.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pages/docs-efl-buildenv.txt b/pages/docs-efl-buildenv.txt index 22afda563..d5a9156af 100644 --- a/pages/docs-efl-buildenv.txt +++ b/pages/docs-efl-buildenv.txt @@ -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" +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: + + +export CFLAGS="-O3 -ffast-math -march=native" + + +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: + + +export CFLAGS="-O2 -ffast-math -march=native -g" + + +If you want a really debuggable piece of code where optimizations mess with little to nothing at all use: + + +export CFLAGS="-O -g -ffast-math -march=native" + + ==== 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: