Hi, Michael.

thank you, advice.

I move "-fno-strict-aliasing" flag to configure.ac.

Best Regards.
-=-=-=-=-=-=-=-=-
Naruto TAKAHASHI
tnar...@gmail.com

From: Michael Jennings <e-de...@kainx.org>
Subject: Re: [E-devel] E SVN: raster trunk/eina/src/lib
Date: Sun, 4 Jan 2009 22:10:11 -0800

> On Wednesday, 31 December 2008, at 19:09:48 (-0800),
> Enlightenment SVN wrote:
> 
>> -...@eina_cflags@
>> +...@eina_cflags@ \
>> +-fno-strict-aliasing
> 
> This breaks portability.  If this flag is needed, there must be a
> configure.ac test for the acceptability of this flag.
> 
> Michael
> 
> -- 
> Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <m...@kainx.org>
> Linux Server/Cluster Admin, LBL.gov       Author, Eterm (www.eterm.org)
> -----------------------------------------------------------------------
>  "...in order to secure the safety of the public while traveling on
>   public roads...it shall be unlawful for any person to drive, propel,
>   or run any vehicle in, upon, and along any of the public roads in
>   this county."             -- Montgomery County, Mississippi, statute
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Index: src/lib/Makefile.am
===================================================================
--- src/lib/Makefile.am	(revision 38463)
+++ src/lib/Makefile.am	(working copy)
@@ -6,8 +6,7 @@
 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
 -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
-...@eina_cflags@ \
--fno-strict-aliasing
+...@eina_cflags@
 
 lib_LTLIBRARIES = libeina.la
 
Index: configure.ac
===================================================================
--- configure.ac	(revision 38463)
+++ configure.ac	(working copy)
@@ -283,6 +283,12 @@
    EINA_CFLAGS="${EINA_CFLAGS} -Wall -W -Wextra" # -Werror
 fi
 
+GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
+
+if test "$GCC_MAJOR_VERSION" = "3" ; then
+   EINA_CFLAGS="${EINA_CFLAGS} -fno-strict-aliasing"
+fi
+
 AC_SUBST(EINA_CFLAGS)
 
 
------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to