git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@39462
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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)
-I$(top_builddir)/src/include \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
--DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
-@EINA_CFLAGS@ \
--fno-strict-aliasing
+-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\"
lib_LTLIBRARIES = libeina.la
libeina_la_LIBADD = @EINA_LIBS@ @dlopen_libs@
libeina_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@
+libeina_la_CFLAGS = @EINA_CFLAGS@
clean-local:
rm -rf *.gcno