[oe-commits] [openembedded-core] 40/47: glew: Compile with -D_GNU_SOURCE

git at git.openembedded.org git at git.openembedded.org
Sun May 21 14:04:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 3a46984a68c423f4844879413d7c427dad4050e3
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Sat May 6 17:34:14 2017 +0000

    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
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-graphics/glew/glew_2.0.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-graphics/glew/glew_2.0.0.bb b/meta/recipes-graphics/glew/glew_2.0.0.bb
index 1c93ca0..f2ab756 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-
 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.

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list