package/libgpgme: C++ binding requires gcc 5
authorBaruch Siach <baruch@tkos.co.il>
Tue, 9 Jul 2019 10:23:24 +0000 (13:23 +0300)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 9 Jul 2019 17:50:20 +0000 (19:50 +0200)
libgpgme now use the -Wsuggest-override warning parameter when building
the C++ binding. This requires gcc 5 or newer.

Fixes:
http://autobuild.buildroot.net/results/6eed9cae57af445f53c9854e007815b882c5c65a/
http://autobuild.buildroot.net/results/75617aee53a6f2b009a0d4ddc5b9a8c4cd406895/
http://autobuild.buildroot.net/results/8191a732918c6987b84309df3dfd66ab54b43fb7/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/libgpgme/libgpgme.mk

index f916ca180cfb2d46e53482c1ae7e26e3f1b4bad5..1a045862ddc5ba0fc5cfb02f4c1b4942f1702c62 100644 (file)
@@ -23,8 +23,8 @@ LIBGPGME_CONF_OPTS = \
        --disable-gpg-test \
        --enable-languages=$(LIBGPGME_LANGUAGE_BINDINGS)
 
-# C++ bindings require a C++11 capable gcc
-ifeq ($(BR2_INSTALL_LIBSTDCPP)$(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8),yy)
+# C++ bindings require a C++11 capable gcc, and -Wsuggest-override support
+ifeq ($(BR2_INSTALL_LIBSTDCPP)$(BR2_TOOLCHAIN_GCC_AT_LEAST_5),yy)
 LIBGPGME_LANGUAGE_BINDINGS := $(LIBGPGME_LANGUAGE_BINDINGS),cpp
 endif