From c975106f60d909b244f473e381b1ebffd943364a Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 1 Nov 2019 11:59:05 +0100 Subject: [PATCH] package/grantlee: fix build with Qt 5.x Fixes: - http://autobuild.buildroot.org/results/f0ec288fe47b6e8cf16179e3f281cf9caebb8fe9 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/grantlee/grantlee.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/grantlee/grantlee.mk b/package/grantlee/grantlee.mk index 575b63fef5..c129fe40b2 100644 --- a/package/grantlee/grantlee.mk +++ b/package/grantlee/grantlee.mk @@ -11,4 +11,9 @@ GRANTLEE_LICENSE = LGPL-2.1+ GRANTLEE_LICENSE_FILES = COPYING.LIB GRANTLEE_DEPENDENCIES = qt5base qt5script +# qt5 needs c++11 (since qt-5.7) +ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y) +GRANTLEE_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -std=c++11" +endif + $(eval $(cmake-package))