From f2081f172e19703ec496fb61e7aa27fd49540c1a Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Mon, 7 Mar 2016 10:03:44 +0900 Subject: [PATCH] renderer: added omitted one that is needed by cflags and libs for tbm. this causes breaks build after enabling "--as-needed" option. Change-Id: I8634001e7e691a910ce1a04b4dc95c33e2f54400 --- configure.ac | 2 ++ src/lib/render/Makefile.am | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index ca00dfa..245127a 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,8 @@ if test x$have_tbm = xyes; then PEPPER_REQUIRES="$PEPPER_REQUIRES libtbm wayland-tbm-server" fi +AM_CONDITIONAL([HAVE_TBM], [test "x${have_tbm}" = "xyes"]) + PEPPER_DIR="-I\$(top_srcdir)/src/lib/pepper" PEPPER_LIB="\$(top_srcdir)/src/lib/pepper/libpepper.la" diff --git a/src/lib/render/Makefile.am b/src/lib/render/Makefile.am index 5c62b97..14bf92e 100644 --- a/src/lib/render/Makefile.am +++ b/src/lib/render/Makefile.am @@ -8,6 +8,11 @@ libpepper_render_include_HEADERS = pepper-render.h libpepper_render_la_CFLAGS = $(AM_CFLAGS) $(PEPPER_RENDER_CFLAGS) libpepper_render_la_LIBADD = $(PEPPER_RENDER_LIBS) +if HAVE_TBM +libpepper_render_la_CFLAGS += $(TBM_CFLAGS) +libpepper_render_la_LIBADD += $(TBM_LIBS) +endif + libpepper_render_la_SOURCES = pepper-render.h \ pepper-render-internal.h \ renderer.c -- 2.7.4