zstd: Fix compilation on uClibc-ng
authorRosen Penev <redacted>
Wed, 1 May 2019 21:11:48 +0000 (14:11 -0700)
committerRosen Penev <redacted>
Wed, 1 May 2019 21:13:17 +0000 (14:13 -0700)
uClibc-ng defines __GLIBCC__ and does not compile in execinfo.h. Disable
it.

Signed-off-by: Rosen Penev <redacted>
utils/zstd/Makefile
utils/zstd/patches/010-uClibc-ng.patch [new file with mode: 0644]

index dff96d6ffb404ffa2c886c6cff442e88b06a0c7e..865dc73b3abddc28e0efd00b7eff1adaf737152b 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=zstd
 PKG_VERSION:=1.4.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/facebook/zstd/tar.gz/v$(PKG_VERSION)?
diff --git a/utils/zstd/patches/010-uClibc-ng.patch b/utils/zstd/patches/010-uClibc-ng.patch
new file mode 100644 (file)
index 0000000..552286b
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/programs/fileio.c
++++ b/programs/fileio.c
+@@ -175,7 +175,7 @@ static void clearHandler(void)
+ #if !defined(BACKTRACE_ENABLE)
+ /* automatic detector : backtrace enabled by default on linux+glibc and osx */
+-#  if (defined(__linux__) && defined(__GLIBC__)) \
++#  if (defined(__linux__) && (defined(__GLIBC__) && !defined(__UCLIBC__))) \
+      || (defined(__APPLE__) && defined(__MACH__))
+ #    define BACKTRACE_ENABLE 1
+ #  else
git clone https://git.99rst.org/PROJECT