From 64fa645e8025300270059808bcab9f618135875a Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Sun, 30 Dec 2012 18:28:26 +0000 Subject: [PATCH] efl: uniform compiler flags. 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 | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/configure.ac b/configure.ac index 3804877b97..b80a6bfd5d 100644 --- a/configure.ac +++ b/configure.ac @@ -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