From 0dbf569173178810c17c6fe1a2e1b29b716ce90f Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Wed, 8 Jun 2016 00:57:13 +1000 Subject: omxplayer: fix compilation with GCC 6 Specifying -isystem${STAGING_DIR_HOST}/usr/include in INCLUDES gives: In file included from utils/PCMRemap.cpp:26:0: .../build/tmp/sysroots/raspberrypi2/usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory #include_next ^ compilation terminated. Makefile:44: recipe for target 'utils/PCMRemap.o' failed To resolve this, /usr/include shouldn't be specified as it is already a default include path relative to the sysroot. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129. Signed-off-by: Jonathan Liu --- recipes-multimedia/omxplayer/omxplayer_git.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'recipes-multimedia') diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb index 7d3b464..d9460de 100644 --- a/recipes-multimedia/omxplayer/omxplayer_git.bb +++ b/recipes-multimedia/omxplayer/omxplayer_git.bb @@ -40,8 +40,7 @@ export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \ -L${STAGING_DIR_HOST}/lib \ -L${STAGING_DIR_HOST}/usr/lib \ " -export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \ - -isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \ +export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \ -isystem${STAGING_DIR_HOST}/usr/include/freetype2 \ -isystem${STAGING_DIR_HOST}/usr/include/interface/vmcs_host/linux \ -isystem${STAGING_DIR_HOST}/usr/include/dbus-1.0 \ -- cgit v1.2.3-54-g00ecf