libmraa: fix compilation with GCC10
authorRosen Penev <redacted>
Sat, 6 Mar 2021 02:14:38 +0000 (18:14 -0800)
committerRosen Penev <redacted>
Sun, 7 Mar 2021 22:49:05 +0000 (14:49 -0800)
Taken from an upstream issue.

Signed-off-by: Rosen Penev <redacted>
libs/libmraa/Makefile
libs/libmraa/patches/030-gcc10.patch [new file with mode: 0644]

index d05453e123639b4f070c8a5e81de6a68425b1eaa..8c29d8dfe9fca3d8ac8673147caa63e52f5018c3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libmraa
 PKG_VERSION:=2.2.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/eclipse/mraa/tar.gz/v$(PKG_VERSION)?
diff --git a/libs/libmraa/patches/030-gcc10.patch b/libs/libmraa/patches/030-gcc10.patch
new file mode 100644 (file)
index 0000000..dad1249
--- /dev/null
@@ -0,0 +1,13 @@
+--- 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
+ }
git clone https://git.99rst.org/PROJECT