mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
glew: Compile with -D_GNU_SOURCE
Required with glibc 2.26 when x11 is not in distro features it errors out due to mising CLOCK_REALTIME error: 'CLOCK_REALTIME' undeclared (first use in this function); did you mean '_XOPEN_REALTIME'? if (clock_gettime(CLOCK_REALTIME, &ts) == -1) ^~~~~~~~~~~~~~ _XOPEN_REALTIME (From OE-Core rev: 389b5f96af68439cc8e135a33f1e41116cb1d1aa) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
67d7ea7c67
commit
d40f0c916f
|
@ -24,6 +24,7 @@ PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', 'egl-
|
|||
PACKAGECONFIG[opengl] = "SYSTEM='linux',,virtual/libx11 virtual/libgl libglu libxext libxi libxmu"
|
||||
PACKAGECONFIG[egl-gles2] = "SYSTEM='linux-egl' GLEW_NO_GLU='-DGLEW_NO_GLU' LDFLAGS.GL='-lEGL -lGLESv2',,virtual/egl virtual/libgles2"
|
||||
|
||||
CFLAGS += "-D_GNU_SOURCE"
|
||||
# Override SYSTEM (via PACKAGECONFIG_CONFARGS) to avoid calling config.guess,
|
||||
# we're cross-compiling. Pass our CFLAGS via POPT as that's the optimisation
|
||||
# variable and safely overwritten.
|
||||
|
|
Loading…
Reference in New Issue
Block a user