aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-05-01 10:04:45 -0700
committerPetr Štetiar <ynezz@true.cz>2019-05-17 21:41:43 +0200
commit395bef4bbacc0dd1cca72907529539194504be27 (patch)
tree40cac89a584b75b81d289ed967e56164c85027a2 /package
parent250bbaf3606e15a3c747010786465eee162689af (diff)
downloadupstream-395bef4bbacc0dd1cca72907529539194504be27.tar.gz
upstream-395bef4bbacc0dd1cca72907529539194504be27.tar.bz2
upstream-395bef4bbacc0dd1cca72907529539194504be27.zip
libbsd: Fix compilation under ARC
The 8 year old file does not have any ARC definitions. Signed-off-by: Rosen Penev <rosenp@gmail.com> [updated content of the patch with version sent to upstream] Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package')
-rw-r--r--package/libs/libbsd/Makefile2
-rw-r--r--package/libs/libbsd/patches/010-fix-arc.patch30
2 files changed, 31 insertions, 1 deletions
diff --git a/package/libs/libbsd/Makefile b/package/libs/libbsd/Makefile
index 4101d5e0ee..63b9ceafc3 100644
--- a/package/libs/libbsd/Makefile
+++ b/package/libs/libbsd/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libbsd
PKG_VERSION:=0.8.7
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_HASH:=f548f10e5af5a08b1e22889ce84315b1ebe41505b015c9596bad03fd13a12b31
diff --git a/package/libs/libbsd/patches/010-fix-arc.patch b/package/libs/libbsd/patches/010-fix-arc.patch
new file mode 100644
index 0000000000..64948c6d67
--- /dev/null
+++ b/package/libs/libbsd/patches/010-fix-arc.patch
@@ -0,0 +1,30 @@
+From f60b6777cc2047f9845de2c88cf092b045c160c0 Mon Sep 17 00:00:00 2001
+From: Rosen Penev <rosenp@gmail.com>
+Date: Fri, 17 May 2019 01:44:56 +0000
+Subject: [PATCH] local-elf: Add ARC support
+
+Signed-off-by: Rosen Penev <rosenp@gmail.com>
+---
+ src/local-elf.h | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/local-elf.h b/src/local-elf.h
+index 83ca253..b90baf3 100644
+--- a/src/local-elf.h
++++ b/src/local-elf.h
+@@ -53,6 +53,12 @@
+ #endif
+ #define ELF_TARG_DATA ELFDATA2LSB
+
++#elif defined (__arc__)
++
++#define ELF_TARG_MACH EM_ARC
++#define ELF_TARG_CLASS ELFCLASS32
++#define ELF_TARG_DATA ELFDATA2LSB
++
+ #elif defined(__arm__)
+
+ #define ELF_TARG_MACH EM_ARM
+--
+2.18.1
+