[openwrt/openwrt] build: fix path to libfakeroot on macOS
LEDE Commits
lede-commits at lists.infradead.org
Tue Sep 1 11:02:25 EDT 2020
nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/6541028598b4a1079ee6182c5b50d6bcd9e21002
commit 6541028598b4a1079ee6182c5b50d6bcd9e21002
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Sep 1 17:00:45 2020 +0200
build: fix path to libfakeroot on macOS
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
rules.mk | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/rules.mk b/rules.mk
index 481c04549d..8b2424f2ba 100644
--- a/rules.mk
+++ b/rules.mk
@@ -264,7 +264,13 @@ endif
BUILD_KEY=$(TOPDIR)/key-build
-FAKEROOT:=$(STAGING_DIR_HOST)/bin/fakeroot -l $(STAGING_DIR_HOST)/lib/libfakeroot.so -f $(STAGING_DIR_HOST)/bin/faked
+ifeq ($(HOST_OS),Darwin)
+ FAKEROOT_SO:=$(STAGING_DIR_HOST)/lib/libfakeroot.dylib
+else
+ FAKEROOT_SO:=$(STAGING_DIR_HOST)/lib/libfakeroot.so
+endif
+FAKEROOT:=$(STAGING_DIR_HOST)/bin/fakeroot -l $(FAKEROOT_SO) -f $(STAGING_DIR_HOST)/bin/faked
+
TARGET_CC:=$(TARGET_CROSS)gcc
TARGET_CXX:=$(TARGET_CROSS)g++
KPATCH:=$(SCRIPT_DIR)/patch-kernel.sh
More information about the lede-commits
mailing list