mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-04-25 13:08:12 +00:00
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 <stdlib.h>
^
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 <net147@gmail.com>
This commit is contained in:
committed by
Andrei Gherzan
parent
ffddbad97c
commit
0dbf569173
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user