[Buildroot] [PATCH 1/1] package/libodb-mysql: fix build with gcc 11

Arnout Vandecappelle arnout at mind.be
Tue Aug 3 21:45:53 UTC 2021



On 03/08/2021 15:50, Fabrice Fontaine wrote:
> Fixes:
>  - No autobuilder failures yet

 That's extremely unlikely, with James's autobuilders there should be dozens
already after a single day. Are you sure that the build fails for this package?

 Same for libodb-boost.

 We can let this soak for a few days and see if autobuilder failures turn up. Or
you can simply copy&paste the error from a manual build.

 Regards,
 Arnout

> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  package/libodb-mysql/libodb-mysql.mk | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> 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))
> 


More information about the buildroot mailing list