diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-05-06 17:34:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-23 17:45:36 +0100 |
commit | d40f0c916fb68056ab0d5d07cfc5df366d9045e0 (patch) | |
tree | 6c5dbb2c705d98197f486a0ec6a1593947f94d97 /meta/recipes-graphics | |
parent | 67d7ea7c675910f4da548639cdee31073cdf59fa (diff) | |
download | poky-d40f0c916fb68056ab0d5d07cfc5df366d9045e0.tar.gz |
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>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/glew/glew_2.0.0.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-graphics/glew/glew_2.0.0.bb b/meta/recipes-graphics/glew/glew_2.0.0.bb index 1c93ca07b6..f2ab75629c 100644 --- a/meta/recipes-graphics/glew/glew_2.0.0.bb +++ b/meta/recipes-graphics/glew/glew_2.0.0.bb | |||
@@ -24,6 +24,7 @@ PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', 'egl- | |||
24 | PACKAGECONFIG[opengl] = "SYSTEM='linux',,virtual/libx11 virtual/libgl libglu libxext libxi libxmu" | 24 | PACKAGECONFIG[opengl] = "SYSTEM='linux',,virtual/libx11 virtual/libgl libglu libxext libxi libxmu" |
25 | PACKAGECONFIG[egl-gles2] = "SYSTEM='linux-egl' GLEW_NO_GLU='-DGLEW_NO_GLU' LDFLAGS.GL='-lEGL -lGLESv2',,virtual/egl virtual/libgles2" | 25 | PACKAGECONFIG[egl-gles2] = "SYSTEM='linux-egl' GLEW_NO_GLU='-DGLEW_NO_GLU' LDFLAGS.GL='-lEGL -lGLESv2',,virtual/egl virtual/libgles2" |
26 | 26 | ||
27 | CFLAGS += "-D_GNU_SOURCE" | ||
27 | # Override SYSTEM (via PACKAGECONFIG_CONFARGS) to avoid calling config.guess, | 28 | # Override SYSTEM (via PACKAGECONFIG_CONFARGS) to avoid calling config.guess, |
28 | # we're cross-compiling. Pass our CFLAGS via POPT as that's the optimisation | 29 | # we're cross-compiling. Pass our CFLAGS via POPT as that's the optimisation |
29 | # variable and safely overwritten. | 30 | # variable and safely overwritten. |