From b09611969a2a2ab9efbbade402b44241b448918e Mon Sep 17 00:00:00 2001 From: Amarnath Valluri Date: Fri, 21 Oct 2016 14:43:35 +0300 Subject: glmark2: Enabling c++ 11 features When build with gcc5, Failed with below errors: | ../src/image-reader.cpp: In member function 'bool PNGReader::init(const string&)': | ../src/image-reader.cpp:123:16: error: 'unique_ptr' in namespace 'std' does not name a template type This change explicitly enables c++11 features, as code using them. Signed-off-by: Amarnath Valluri Signed-off-by: Martin Jansa --- meta-oe/recipes-benchmark/glmark2/glmark2_git.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb b/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb index 396ae70941..a2558a72a0 100644 --- a/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb +++ b/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb @@ -28,6 +28,9 @@ PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11-gl ${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'wayland-gl wayland-gles2', '', d)} \ drm-gl drm-gles2" +# Enable C++11 features +CXXFLAGS += "-std=c++11" + PACKAGECONFIG[x11-gl] = ",,virtual/libgl virtual/libx11" PACKAGECONFIG[x11-gles2] = ",,virtual/libgles2 virtual/libx11" PACKAGECONFIG[drm-gl] = ",,virtual/libgl libdrm" -- cgit v1.2.3-54-g00ecf