From: Fabrice Fontaine Date: Tue, 3 Aug 2021 13:50:41 +0000 (+0200) Subject: package/libodb-mysql: fix build with gcc 11 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=506bace2fe1f1236b9888f4cc7bd32d1c81760f0;p=buildroot.git package/libodb-mysql: fix build with gcc 11 Fixes: http://autobuild.buildroot.net/results/8f0/8f0e3b604ff9809e3b415036b8d99521db33c4db http://autobuild.buildroot.net/results/d03/d038b79e719c37a93d635c6b61443033094d8716 Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- diff --git a/package/libodb-mysql/libodb-mysql.mk b/package/libodb-mysql/libodb-mysql.mk index a9040c65f8..88b6f4cb31 100644 --- a/package/libodb-mysql/libodb-mysql.mk +++ b/package/libodb-mysql/libodb-mysql.mk @@ -12,6 +12,8 @@ LIBODB_MYSQL_INSTALL_STAGING = YES LIBODB_MYSQL_LICENSE = GPL-2.0 LIBODB_MYSQL_LICENSE_FILES = LICENSE LIBODB_MYSQL_DEPENDENCIES = libodb mysql -LIBODB_MYSQL_CONF_ENV = LIBS=`$(STAGING_DIR)/usr/bin/mysql_config --libs` +LIBODB_MYSQL_CONF_ENV = \ + CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" \ + LIBS=`$(STAGING_DIR)/usr/bin/mysql_config --libs` $(eval $(autotools-package))