Skip to contentSkip to conversation

gpgme: Avoid requiring a host C++ compiler with C++11 support

PATCH New Peter Kjellerstedt 1 participant 1 message Mar 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpgme: Avoid requiring a host C++ compiler with C++11 support

Building the C++ bindings for native requires a host C++ compiler with C++11 support. Since these bindings are currently not needed, we can disable them and thus avoid increasing the requirement for the host C++ compiler.

---
 meta/recipes-support/gpgme/gpgme_1.8.0.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-support/gpgme/gpgme_1.8.0.bb +5 -1
index d3e7880a47..2756ef815d 100644
@@ -34,7 +34,11 @@ PACKAGECONFIG[python3] = ",,python3 swig-native,"
 # Supported: "cl cpp python python2 python3 qt"
 # python says 'search and find python2 or python3'
 
-LANGUAGES ?= "cpp"
+# Building the C++ bindings for native requires a C++ compiler with C++11
+# support. Since these bindings are currently not needed, we can disable them.
+DEFAULT_LANGUAGES = ""
+DEFAULT_LANGUAGES_class-target = "cpp"
+LANGUAGES ?= "${DEFAULT_LANGUAGES}"
 LANGUAGES .= "${@bb.utils.contains('PACKAGECONFIG', 'python2', ' python2', '', d)}"
 LANGUAGES .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', ' python3', '', d)}"
 
Signature · 1 line
2.12.0