[openwrt/openwrt] tools/findutils: fix build on macos
LEDE Commits
lede-commits at lists.infradead.org
Mon Sep 6 01:24:41 PDT 2021
ldir pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/96a7a4738cbda4d2abfd9a4061bbfdf5c0ac2ec0
commit 96a7a4738cbda4d2abfd9a4061bbfdf5c0ac2ec0
Author: Kevin Darbyshire-Bryant <ldir at darbyshire-bryant.me.uk>
AuthorDate: Sun Sep 5 23:28:16 2021 +0100
tools/findutils: fix build on macos
Use same fix as homebrew:
https://github.com/Homebrew/homebrew-core/pull/69761
Signed-off-by: Kevin Darbyshire-Bryant <ldir at darbyshire-bryant.me.uk>
---
tools/findutils/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/findutils/Makefile b/tools/findutils/Makefile
index c40fa6efc1..37cd897355 100644
--- a/tools/findutils/Makefile
+++ b/tools/findutils/Makefile
@@ -18,6 +18,10 @@ HOST_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/host-build.mk
+ifeq ($(HOST_OS),Darwin)
+ HOST_CFLAGS +=-D__nonnull\\(params\\)=
+endif
+
HOST_CONFIGURE_ARGS += \
--enable-threads=pth \
--disable-rpath \
More information about the lede-commits
mailing list