[oe-commits] [meta-openembedded] 49/57: glmark2: Enabling c++ 11 features
git at git.openembedded.org
git at git.openembedded.org
Tue Oct 25 13:34:56 UTC 2016
martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.
commit 9cf0c401f660ec5e5cb24e103e64303920abb595
Author: Amarnath Valluri <amarnath.valluri at intel.com>
AuthorDate: Fri Oct 21 14:43:35 2016 +0300
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 <amarnath.valluri at intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
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 396ae70..a2558a7 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"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list