hiredis: fix compilation with macOS
authorRosen Penev <rosenp@gmail.com>
Tue, 5 Oct 2021 00:25:15 +0000 (17:25 -0700)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 15 Nov 2021 20:01:08 +0000 (20:01 +0000)
uname is used to test the host OS. Override it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 0ce3a961d39eb6a664088bf77cdf36fdad3bb732)

libs/hiredis/Makefile

index 0e77e5e33225b8164118b6138466da5b9fed06b2..3194f132d40922f8b2ed4d5c8b0937a2c3f9e07c 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=hiredis
 PKG_VERSION:=1.0.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/redis/hiredis/tar.gz/v$(PKG_VERSION)?
@@ -35,7 +35,7 @@ define Package/libhiredis/description
        Hiredis is a minimalistic C client library for the Redis database.
 endef
 
-MAKE_FLAGS += ARCH="" DEBUG="" PREFIX="/usr"
+MAKE_FLAGS += ARCH="" DEBUG="" PREFIX="/usr" uname_S="Linux"
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/hiredis/adapters