From: Patrick Welche Date: Fri, 20 May 2011 11:35:15 +0000 (+0100) Subject: Build fixes. X-Git-Tag: AT_SPI2_ATK_2_12_0~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76eef82a0842f4db4d70aad466e8af5ca4ec3956;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git Build fixes. - cache-adaptor.c makes use of AtkStateSet* . - atk-bridge uses X. - -Werror-implicit-function-declaration doesn't contain an equal sign in my copy of gcc, and is gcc specific. --- diff --git a/atk-adaptor/Makefile.include b/atk-adaptor/Makefile.include index b2ef66f..cd1675e 100644 --- a/atk-adaptor/Makefile.include +++ b/atk-adaptor/Makefile.include @@ -1,12 +1,13 @@ gtkmodule_LTLIBRARIES = libatk-bridge.la -libatk_bridge_la_CFLAGS = $(DBUS_CFLAGS) \ - $(ATK_CFLAGS) \ - $(ATSPI_CFLAGS) \ - -I$(top_srcdir) \ - -I$(top_srcdir)/atk-adaptor/adaptors \ - $(P2P_CFLAGS) \ - -Werror=implicit-function-declaration +libatk_bridge_la_CFLAGS = \ + $(DBUS_CFLAGS) \ + $(ATK_CFLAGS) \ + $(ATSPI_CFLAGS) \ + -I$(top_srcdir) \ + -I$(top_srcdir)/atk-adaptor/adaptors \ + $(P2P_CFLAGS) \ + $(X_CFLAGS) libatk_bridge_la_LDFLAGS = -no-undefined \ -module \ diff --git a/atk-adaptor/adaptors/cache-adaptor.c b/atk-adaptor/adaptors/cache-adaptor.c index edbcb7b..3b6b28c 100644 --- a/atk-adaptor/adaptors/cache-adaptor.c +++ b/atk-adaptor/adaptors/cache-adaptor.c @@ -29,6 +29,7 @@ #include #include "common/spi-dbus.h" +#include "common/spi-stateset.h" #include "accessible-cache.h" #include "bridge.h" #include "object.h" diff --git a/configure.ac b/configure.ac index 211bc57..23d868e 100644 --- a/configure.ac +++ b/configure.ac @@ -99,6 +99,10 @@ DBIND_CHECK_ALIGNOF(dbind_pointer) DBIND_CHECK_ALIGNOF(dbind_struct) CPPFLAGS=$orig_CPPFLAGS +if test "x$GCC" = xyes; then + CFLAGS="$CFLAGS -Werror-implicit-function-declaration" +fi + if test "x$enable_p2p" = "xno"; then P2P_CFLAGS=-DDISABLE_P2P fi diff --git a/dbind/Makefile.am b/dbind/Makefile.am index 607226d..e71b4e5 100644 --- a/dbind/Makefile.am +++ b/dbind/Makefile.am @@ -1,11 +1,8 @@ noinst_LTLIBRARIES = libdbind.la -WARN_CFLAGS=-Werror=implicit-function-declaration - AM_CPPFLAGS = \ -DG_LOG_DOMAIN=\"dbind\" \ -I$(top_srcdir) \ - $(WARN_CFLAGS) \ $(DBUS_CFLAGS) \ $(GLIB_CFLAGS) diff --git a/droute/Makefile.am b/droute/Makefile.am index 854dee4..676dc8f 100644 --- a/droute/Makefile.am +++ b/droute/Makefile.am @@ -3,8 +3,7 @@ noinst_LTLIBRARIES = libdroute.la libdroute_la_CFLAGS = $(DBUS_CFLAGS) \ $(GLIB_CFLAGS) \ -I$(top_builddir)\ - -I$(top_srcdir) \ - -Werror=implicit-function-declaration + -I$(top_srcdir) libdroute_la_SOURCES =\ droute.c\