diff --git a/legacy/ecore/configure.ac b/legacy/ecore/configure.ac index 3ff39e4757..bfa7edc33d 100644 --- a/legacy/ecore/configure.ac +++ b/legacy/ecore/configure.ac @@ -1526,6 +1526,10 @@ if test "x${have_ecore_con}" = "xyes" ; then fi +if test "x${have_cares}" != "xyes" -a "x${have_ipv6}" = "xyes" ; then + EFL_CHECK_COMPILER_FLAGS([ECORE_CON], [-Wno-override-init -Wno-initializer-overrides]) +fi + AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"]) # ecore_ipc diff --git a/legacy/ecore/src/lib/ecore_con/Makefile.am b/legacy/ecore/src/lib/ecore_con/Makefile.am index 296274cef2..0e8e071545 100644 --- a/legacy/ecore/src/lib/ecore_con/Makefile.am +++ b/legacy/ecore/src/lib/ecore_con/Makefile.am @@ -25,6 +25,8 @@ ecore_con_ssl.c \ ecore_con_url.c \ ecore_con_alloc.c +libecore_con_la_CFLAGS = @WIN32_CFLAGS@ + if ECORE_HAVE_WIN32 libecore_con_la_SOURCES += ecore_con_local_win32.c else @@ -35,13 +37,13 @@ if HAVE_CARES libecore_con_la_SOURCES += ecore_con_ares.c else if HAVE_IPV6 +libecore_con_la_CFLAGS += @ECORE_CON_CFLAGS@ libecore_con_la_SOURCES += ecore_con_dns.c dns.c dns.h else libecore_con_la_SOURCES += ecore_con_info.c endif endif -libecore_con_la_CFLAGS = @WIN32_CFLAGS@ libecore_con_la_LIBADD = \ $(top_builddir)/src/lib/ecore/libecore.la \ @SSL_LIBS@ @CURL_LIBS@ @EINA_LIBS@ @EVIL_LIBS@ @TLS_LIBS@ @CARES_LIBS@ @WIN32_LIBS@