[Buildroot] [PATCH v2 1/1] libplayer: fix cflags

Samuel Martin s.martin49 at gmail.com
Sun Jun 10 11:46:46 UTC 2012


Explicitly run pkg-config to add some include directories to the cflags
when gstreamer support is enabled.

This patch fixes the following unfound headers:
- glib.h
- glibconfig.h
- gst/gst.h

Signed-off-by: Samuel Martin <s.martin49 at gmail.com>

diff --git a/package/libplayer/libplayer.mk b/package/libplayer/libplayer.mk
index 093821e..643c7bb 100644
--- a/package/libplayer/libplayer.mk
+++ b/package/libplayer/libplayer.mk
@@ -30,8 +30,10 @@ else
 endif
 
 ifeq ($(BR2_PACKAGE_LIBPLAYER_GSTREAMER),y)
-	LIBPLAYER_DEPENDENCIES += gstreamer
+	LIBPLAYER_DEPENDENCIES += host-pkg-config libglib2 gstreamer
 	LIBPLAYER_CONF_OPT += --enable-gstreamer
+	LIBPLAYER_MAKE_OPT += \
+		CFLAGS+="`$(PKG_CONFIG_HOST_BINARY) --cflags glib-2.0 gstreamer-0.10`"
 else
 	LIBPLAYER_CONF_OPT += --disable-gstreamer
 endif
-- 
1.7.10.4




More information about the buildroot mailing list