efl: uniform compiler flags.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Sun, 30 Dec 2012 18:28:26 +0000 (18:28 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Sun, 30 Dec 2012 18:28:26 +0000 (18:28 +0000)
note: dns.c were already emitting warnings regarding shadow, so I
removed the flag to quiet override-init. It will a bit louder, but
then we remember it would be better to rewrite this dns in proper EFL.

SVN revision: 81905

configure.ac

index 3804877..b80a6bf 100644 (file)
@@ -425,6 +425,7 @@ AC_CHECK_TYPES([siginfo_t], [], [],
 AC_C_BIGENDIAN
 AC_C_INLINE
 EFL_CHECK_COMPILER_FLAGS([EFL], [-Wall -Wextra -Wpointer-arith -Wno-missing-field-initializers])
+EFL_CHECK_LINKER_FLAGS([EFL], [-fno-strict-aliasing -Wl,--as-needed])
 case "${build_profile}" in
    dev)
      EFL_CHECK_COMPILER_FLAGS([EFL], [-Wshadow])
@@ -807,17 +808,8 @@ AC_DEFINE_IF([HAVE_DIRENT_H], [test "x${have_dirent}" = "xyes"],
 
 ### Checks for compiler characteristics
 
-m4_ifdef([v_ver],
-   [
-    EFL_CHECK_COMPILER_FLAGS([EINA], [-Wall -Wextra])
-   ])
-
-EFL_CHECK_COMPILER_FLAGS([EINA], [-Wshadow -Wpointer-arith])
-
 ### Checks for linker characteristics
 
-EFL_CHECK_LINKER_FLAGS([EINA], [-fno-strict-aliasing])
-
 ### Checks for library functions
 
 EFL_CHECK_FUNCS([EINA], [dlopen dladdr iconv shm_open setxattr])
@@ -893,14 +885,6 @@ EFL_EVAL_PKGS([EET])
 
 ### Checks for linker characteristics
 
-case "${host_os}" in
-   openbsd*)
-   ;;
-   *)
-      EFL_CHECK_LINKER_FLAGS([EET], [-Wl,--as-needed])
-   ;;
-esac
-
 ### Checks for library functions
 
 ### Check availability
@@ -2007,8 +1991,6 @@ AM_CONDITIONAL([HAVE_IPV6], [test "x${have_ipv6}" = "xyes"])
 
 ### Checks for compiler characteristics
 
-EFL_CHECK_COMPILER_FLAGS([ECORE_CON], [-Wno-override-init -Wno-initializer-overrides])
-
 ### Checks for linker characteristics
 
 ### Checks for library functions