package/mraa: fix build with gcc 10
PATCH 1/1 package/mraa: fix build with gcc 10
Fixes:
- http://autobuild.buildroot.org/results/7701c317e300f0b06d258aed2a3bda866e740f48
Signed-off-by Fabrice Fontaine <[email protected]>
--- ...de-Declare-gVERSION-global-as-extern.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/mraa/0002-include-Declare-gVERSION-global-as-extern.patch
package/mraa/0002-include-Declare-gVERSION-global-as-extern.patch new file +29 -0
@@ -0,0 +1,29 @@ +From dbb5961f106ec42cd70689d933674c9c37aedfe1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <[email protected]> +Date: Mon, 13 Apr 2020 20:12:11 +0200 +Subject: [PATCH] include: Declare gVERSION global as 'extern'. + +Fixes build with '-fno-common'. + +[Retrieved from: +https://github.com/eclipse/mraa/pull/1012/commits/dbb5961f106ec42cd70689d933674c9c37aedfe1] +Signed-off-by: Fabrice Fontaine <[email protected]> +--- + include/version.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/version.h b/include/version.h +index 47366ef6f..3a567a1d5 100644 +--- a/include/version.h ++++ b/include/version.h +@@ -11,8 +11,8 @@ + extern "C" { + #endif + +-const char* gVERSION; +-const char* gVERSION_SHORT; ++extern const char* gVERSION; ++extern const char* gVERSION_SHORT; + + #ifdef __cplusplus + }
Signature · 1 line
2.28.0
PATCH 1/1 package/mraa: fix build with gcc 10
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
Fixes:
- http://autobuild.buildroot.org/results/7701c317e300f0b06d258aed2a3bda866e740f48Signed-off-by Fabrice Fontaine <[email protected]>
Committed to 2020.08.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard