[PATCH weston 2/2] build: fix weston-info CFLAGS

ppaalanen at gmail.com ppaalanen at gmail.com
Mon Feb 3 03:12:34 PST 2014


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

  CC       clients/weston-info.o
clients/weston-info.c:31:28: fatal error: wayland-client.h: No such file or directory
compilation terminated.
make[1]: *** [clients/weston-info.o] Error 1

Only triggerable if libwayland is only in a custom prefix.

Fix by adding CLIENT_CFLAGS.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

---

I see most demo apps have *only* CLIENT_CFLAGS which makes them not have
GCC_CFLAGS, but this change makes weston-info to be compiled with
GCC_CFLAGS. Which way should it be?
---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.am b/Makefile.am
index 1de22c9..6eab511 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -547,6 +547,7 @@ weston_info_SOURCES =				\
 	shared/os-compatibility.c		\
 	shared/os-compatibility.h
 weston_info_LDADD = $(WESTON_INFO_LIBS)
+weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
 
 weston_desktop_shell_SOURCES = clients/desktop-shell.c
 nodist_weston_desktop_shell_SOURCES =			\
-- 
1.8.3.2



More information about the wayland-devel mailing list