Hey,

I virtually always used -Os the last decade, …

Hm,
        René

On Nov 13, 2015, at 0:20, Toan Pham <[email protected]> wrote:

> 
> Rene,
> 
> I filed a bug report earlier today but later found out that it was the 
> command wrapper of t2sde tricking glib build system from detecting and 
> stripping out the optimization flags. I later read the auto configure script 
> from glib and found that it was in fact, stripping out all optimization (see 
> below).  The reason why you do not see the problem probably because your 
> target config is not set to use optimization, ie.  SDECFGSET_OPT=size.  If 
> your build target wrapper has gcc remaps to something like "gcc -Os", it will 
> break glib!  I think to be safe, either add the patch or do not use cmd 
> wrapper to pass any kind of compiler flags.
> 
> 
> bug report reference:  https://bugzilla.gnome.org/show_bug.cgi?id=758028
> 
> 
> 
> Snipplet from glib configure.ac script: it removes all "-O?" flags:
> 
>  dnl Remove all optimization flags from CFLAGS
>   changequote({,})
>   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
>   changequote([,])
> 
>   dnl Add the special gcc flags
>   CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
>   LDFLAGS="$LDFLAGS -lgcov"
> 

-- 
 ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin
 DE Legal: Amtsgericht Berlin (Charlottenburg) HRB 105123B, Tax-ID#: DE251602478
 Managing Director: René Rebe
 http://exactcode.com | http://exactscan.com | http://ocrkit.com | 
http://t2-project.org | http://rene.rebe.de

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to